pub enum PacketLineOrWantedSize<'a> {
Line(PacketLineRef<'a>),
Wanted(u16),
}
Expand description
The result of hex_prefix()
indicating either a special packet line or the amount of wanted bytes
Variants§
Line(PacketLineRef<'a>)
The special kind of packet line decoded from the hex prefix. It never contains actual data.
Wanted(u16)
The amount of bytes indicated by the hex prefix of the packet line.
Auto Trait Implementations§
impl<'a> Freeze for PacketLineOrWantedSize<'a>
impl<'a> RefUnwindSafe for PacketLineOrWantedSize<'a>
impl<'a> Send for PacketLineOrWantedSize<'a>
impl<'a> Sync for PacketLineOrWantedSize<'a>
impl<'a> Unpin for PacketLineOrWantedSize<'a>
impl<'a> UnwindSafe for PacketLineOrWantedSize<'a>
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