[−][src]Struct round_based::containers::BroadcastMsgsStore
Receives broadcast messages from every protocol participant
Implementations
impl<M> BroadcastMsgsStore<M>
[src]
pub fn new(party_i: u16, parties_n: u16) -> Self
[src]
Constructs store. Takes this party index and total number of parties.
pub fn messages_received(&self) -> usize
[src]
Amount of received messages so far
pub fn messages_total(&self) -> usize
[src]
Total amount of wanted messages (n-1)
Trait Implementations
impl<M> MessageStore for BroadcastMsgsStore<M>
[src]
type M = M
Message body
type Err = StoreErr
Error type
type Output = BroadcastMsgs<M>
Resulting messages container holding received messages
pub fn push_msg(&mut self, msg: Msg<Self::M>) -> Result<(), Self::Err>
[src]
pub fn contains_msg_from(&self, sender: u16) -> bool
[src]
pub fn wants_more(&self) -> bool
[src]
pub fn finish(self) -> Result<Self::Output, Self::Err>
[src]
pub fn blame(&self) -> (u16, Vec<u16>)
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for BroadcastMsgsStore<M> where
M: RefUnwindSafe,
[src]
M: RefUnwindSafe,
impl<M> Send for BroadcastMsgsStore<M> where
M: Send,
[src]
M: Send,
impl<M> Sync for BroadcastMsgsStore<M> where
M: Sync,
[src]
M: Sync,
impl<M> Unpin for BroadcastMsgsStore<M> where
M: Unpin,
[src]
M: Unpin,
impl<M> UnwindSafe for BroadcastMsgsStore<M> where
M: UnwindSafe,
[src]
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,