Struct codec_sv2::Sv2Frame [−][src]
pub struct Sv2Frame<T, B> { /* fields omitted */ }
Trait Implementations
Serialize the frame into dst if the frame is already serialized it just swap dst with itself
If is an Sv2 frame return the Some(header) if it is a noise frame return None
Try to build a Frame frame from raw bytes. It return the frame or the number of the bytes needed to complete the frame The resulting frame is just a header plus a payload with the right number of bytes nothing is said about the correctness of the payload
Try to build an Frame frame from a serializable payload. It return a Frame if the size of the payload fit in the frame, if not it return None
type Buffer = B
type Deserialized = B
fn deserialize(&’a mut self) -> Result<Self::Deserialized, serde_sv2::Error>;
pub fn from_bytes_unchecked(
bytes: <Sv2Frame<T, B> as Frame<'a, T>>::Buffer
) -> Sv2Frame<T, B>
Auto Trait Implementations
impl<T, B> RefUnwindSafe for Sv2Frame<T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B> UnwindSafe for Sv2Frame<T, B> where
B: UnwindSafe,
T: UnwindSafe,