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, }
Expand description
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<'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<'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]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<A, S, Op> RefUnwindSafe for Packet<A, S, Op> where
A: RefUnwindSafe,
Op: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, S, Op> UnwindSafe for Packet<A, S, Op> where
A: RefUnwindSafe + UnwindSafe,
Op: UnwindSafe,
S: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V