[][src]Struct enet::PeerPacket

pub struct PeerPacket<'b, 'a, T: 'a> {
    pub packet: Packet,
    pub channel_id: u8,
    // some fields omitted
}

A packet received directly from a Peer.

Contains the received packet as well as the channel on which it was received.

Fields

packet: Packet

The packet that was received.

channel_id: u8

The channel on which the packet was received.

Trait Implementations

impl<'b, 'a, T: Debug + 'a> Debug for PeerPacket<'b, 'a, T>[src]

Auto Trait Implementations

impl<'b, 'a, T> !Send for PeerPacket<'b, 'a, T>

impl<'b, 'a, T> !Sync for PeerPacket<'b, 'a, T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.