pub enum DecodedPacket {
Raw,
Interest(Box<Interest>),
Data(Box<Data>),
Nack(Box<Nack>),
}Expand description
The packet as it progresses through decode stages.
Variants§
Raw
Not yet decoded — the raw bytes are still in PacketContext::raw_bytes.
Interest(Box<Interest>)
Data(Box<Data>)
Nack(Box<Nack>)
Auto Trait Implementations§
impl Freeze for DecodedPacket
impl RefUnwindSafe for DecodedPacket
impl Send for DecodedPacket
impl Sync for DecodedPacket
impl Unpin for DecodedPacket
impl UnwindSafe for DecodedPacket
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