#[non_exhaustive]pub enum UnitLength {
Total(usize),
NeedMore,
Stuffing,
}Expand description
What a Framing knows about the unit starting at the front of a buffer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Total(usize)
The unit is this many bytes in all, header included.
NeedMore
Too few bytes to know yet.
Stuffing
The buffer starts with stuffing: the rest of the payload carries no unit.
Implementations§
Trait Implementations§
Source§impl Clone for UnitLength
impl Clone for UnitLength
impl Copy for UnitLength
Source§impl Debug for UnitLength
impl Debug for UnitLength
Source§impl Display for UnitLength
impl Display for UnitLength
impl Eq for UnitLength
Source§impl PartialEq for UnitLength
impl PartialEq for UnitLength
impl StructuralPartialEq for UnitLength
Auto Trait Implementations§
impl Forget for UnitLength
impl Freeze for UnitLength
impl Move for UnitLength
impl RefUnwindSafe for UnitLength
impl Send for UnitLength
impl Sync for UnitLength
impl Unpin for UnitLength
impl UnsafeUnpin for UnitLength
impl UnwindSafe for UnitLength
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