Struct brb::packet::Packet[][src]

pub struct Packet<A: Actor<S>, S: Sig, Op> {
    pub source: A,
    pub dest: A,
    pub payload: Payload<A, S, Op>,
    pub sig: S,
}

Represents a logical message packet with a BRB specific payload.

Fields

source: A

source actor

dest: A

destination actor

payload: Payload<A, S, Op>

payload data

sig: S

signature of payload data by source actor

Trait Implementations

impl<A: Clone + Actor<S>, S: Clone + Sig, Op: Clone> Clone for Packet<A, S, Op>[src]

impl<A: Debug + Actor<S>, S: Debug + Sig, Op: Debug> Debug for Packet<A, S, Op>[src]

impl<'de, A: Actor<S>, S: Sig, Op> Deserialize<'de> for Packet<A, S, Op> where
    A: Deserialize<'de>,
    S: Deserialize<'de>,
    Op: Deserialize<'de>, 
[src]

impl<A: Eq + Actor<S>, S: Eq + Sig, Op: Eq> Eq for Packet<A, S, Op>[src]

impl<A: PartialEq + Actor<S>, S: PartialEq + Sig, Op: PartialEq> PartialEq<Packet<A, S, Op>> for Packet<A, S, Op>[src]

impl<A: Actor<S>, S: Sig, Op> Serialize for Packet<A, S, Op> where
    A: Serialize,
    S: Serialize,
    Op: Serialize
[src]

impl<A: Actor<S>, S: Sig, Op> StructuralEq for Packet<A, S, Op>[src]

impl<A: Actor<S>, S: Sig, Op> StructuralPartialEq for Packet<A, S, Op>[src]

Auto Trait Implementations

impl<A, S, Op> RefUnwindSafe for Packet<A, S, Op> where
    A: RefUnwindSafe,
    Op: RefUnwindSafe,
    S: RefUnwindSafe

impl<A, S, Op> Send for Packet<A, S, Op> where
    A: Send,
    Op: Send,
    S: Send

impl<A, S, Op> Sync for Packet<A, S, Op> where
    A: Sync,
    Op: Sync,
    S: Sync

impl<A, S, Op> Unpin for Packet<A, S, Op> where
    A: Unpin,
    Op: Unpin,
    S: Unpin

impl<A, S, Op> UnwindSafe for Packet<A, S, Op> where
    A: RefUnwindSafe + UnwindSafe,
    Op: UnwindSafe,
    S: RefUnwindSafe + 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,