pub struct FrameWriter<'a> { /* private fields */ }Expand description
Incremental frame builder over a caller-provided buffer.
Implementations§
Source§impl<'a> FrameWriter<'a>
impl<'a> FrameWriter<'a>
Sourcepub fn new(buf: &'a mut [u8], tid: u8, cmd: Cmd) -> Result<Self, WriteError>
pub fn new(buf: &'a mut [u8], tid: u8, cmd: Cmd) -> Result<Self, WriteError>
Start a frame with the given TID and command.