Trait FrameWrite Copy item path Source pub trait FrameWrite {
type Error ;
// Required methods
fn is_empty (&self) -> bool ;
fn push (&mut self, data: &[u8 ]) -> Result <() , PushError >;
fn finish (&mut self) -> Result <&[u8 ], Self::Error >;
}Expand description Accumulates packets into a transfer frame.
Owns the frame buffer internally.
push() writes packet data at the
current offset. finish() stamps the
header and returns a borrow of the completed frame.
Error type for frame construction.
Returns true if no packets have been pushed yet.
Push a packet into the frame at the current offset.
Stamp the frame header and return the finished frame.
Resets internal state for the next frame.