pub enum PacketLength {
Fixed(usize),
Indeterminate,
Partial(usize),
}
Expand description
Represents the packet length.
Variants§
Trait Implementations§
Source§impl Clone for PacketLength
impl Clone for PacketLength
Source§fn clone(&self) -> PacketLength
fn clone(&self) -> PacketLength
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PacketLength
impl Debug for PacketLength
Source§impl From<usize> for PacketLength
impl From<usize> for PacketLength
Source§fn from(val: usize) -> PacketLength
fn from(val: usize) -> PacketLength
Converts to this type from the input type.
Source§impl PartialEq for PacketLength
impl PartialEq for PacketLength
impl Eq for PacketLength
impl StructuralPartialEq for PacketLength
Auto Trait Implementations§
impl Freeze for PacketLength
impl RefUnwindSafe for PacketLength
impl Send for PacketLength
impl Sync for PacketLength
impl Unpin for PacketLength
impl UnwindSafe for PacketLength
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