[][src]Struct round_based::containers::P2PMsgsStore

pub struct P2PMsgsStore<M> { /* fields omitted */ }

Receives P2P messages from every protocol participant

Implementations

impl<M> P2PMsgsStore<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 P2PMsgsStore<M>[src]

type M = M

Message body

type Err = StoreErr

Error type

type Output = P2PMsgs<M>

Resulting messages container holding received messages

Auto Trait Implementations

impl<M> RefUnwindSafe for P2PMsgsStore<M> where
    M: RefUnwindSafe
[src]

impl<M> Send for P2PMsgsStore<M> where
    M: Send
[src]

impl<M> Sync for P2PMsgsStore<M> where
    M: Sync
[src]

impl<M> Unpin for P2PMsgsStore<M> where
    M: Unpin
[src]

impl<M> UnwindSafe for P2PMsgsStore<M> where
    M: UnwindSafe
[src]

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> From<T> for T[src]

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

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.