pub enum Frame {
Body(Vec<u8>),
TooLarge {
length: u64,
head: Vec<u8>,
},
}Expand description
One frame as read_frame read it.
Variants§
Body(Vec<u8>)
A frame within the limit: its body.
TooLarge
A frame past the limit: its length and its head, its first byte
then, for a message that begins with them (Kind::names_call), its run
and call ids, and for a log as many of its bytes, as fit in the larger of the
limit and HEAD (Log::from_head). The rest was read and
dropped.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Framewhere
RawVecInner: Send,
impl Sync for Framewhere
RawVecInner: Sync,
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Framewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more