Trait FrameBuilder

Source
pub trait FrameBuilder {
    // Required method
    fn from_bytes(buf: &mut Vec<u8>) -> Option<Box<dyn Frame>>;
}

Required Methods§

Source

fn from_bytes(buf: &mut Vec<u8>) -> Option<Box<dyn Frame>>

Given a &mut Vec<u8>, this function should return a Frame Trait Object, if possible, created from the bytes in buf. On success this method should remove all bytes that were used during the creation of the returned frame, from buf.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§