1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use puffin::codec::{Codec, Reader};

#[derive(Debug, Clone)]
pub struct ChangeCipherSpecPayload;

impl Codec for ChangeCipherSpecPayload {
    fn encode(&self, bytes: &mut Vec<u8>) {
        1u8.encode(bytes);
    }

    fn read(r: &mut Reader) -> Option<Self> {
        let _typ = u8::read(r)?;

        Some(Self {})
    }
}