[][src]Struct kay::Packet

#[repr(C)]pub struct Packet<M: Message> {
    pub recipient_id: RawID,
    pub message: M,
}

A message plus a recipient

Fields

recipient_id: RawID

The recipient

message: M

The message

Trait Implementations

impl<M: Clone + Message> Clone for Packet<M>[src]

impl<M: Message> Compact for Packet<M>[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for Packet<M> where
    M: RefUnwindSafe

impl<M> Send for Packet<M> where
    M: Send

impl<M> Sync for Packet<M> where
    M: Sync

impl<M> Unpin for Packet<M> where
    M: Unpin

impl<M> UnwindSafe for Packet<M> where
    M: UnwindSafe

Blanket Implementations

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

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

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

impl<T> Compact for T where
    T: Copy
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.