Struct round_based::Msg
source · [−]Expand description
Represent a message transmitting between parties on wire
Fields
sender: u16Index of the sender
Lies in range [1; n] where n is number of parties involved in computation
receiver: Option<u16>Index of receiver
None indicates that it’s broadcast message. Receiver index, if set, lies in range [1; n]
where n is number of parties involved in computation
body: BMessage body
Implementations
Trait Implementations
sourceimpl<'de, B> Deserialize<'de> for Msg<B> where
B: Deserialize<'de>,
impl<'de, B> Deserialize<'de> for Msg<B> where
B: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<B> StructuralPartialEq for Msg<B>
Auto Trait Implementations
impl<B> RefUnwindSafe for Msg<B> where
B: RefUnwindSafe,
impl<B> Send for Msg<B> where
B: Send,
impl<B> Sync for Msg<B> where
B: Sync,
impl<B> Unpin for Msg<B> where
B: Unpin,
impl<B> UnwindSafe for Msg<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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