pub struct Packet<C: PacketContent>(pub PacketHeader, pub C);
Expand description
Structure for a packet created by ourselves where the data contents are already known and not encoded
Tuple Fields
0: PacketHeader
1: C
Implementations
sourceimpl<C: PacketContent> Packet<C>
impl<C: PacketContent> Packet<C>
Trait Implementations
sourceimpl<C: Debug + PacketContent> Debug for Packet<C>
impl<C: Debug + PacketContent> Debug for Packet<C>
sourceimpl<C: PacketContent> TryInto<Packet<C>> for OpaquePacket
impl<C: PacketContent> TryInto<Packet<C>> for OpaquePacket
Auto Trait Implementations
impl<C> RefUnwindSafe for Packet<C>where
C: RefUnwindSafe,
impl<C> Send for Packet<C>where
C: Send,
impl<C> Sync for Packet<C>where
C: Sync,
impl<C> Unpin for Packet<C>where
C: Unpin,
impl<C> UnwindSafe for Packet<C>where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more