Struct round_based::containers::BroadcastMsgs [−][src]
Received broadcast messages from every protocol participant
Implementations
impl<B> BroadcastMsgs<B> where
B: 'static,
[src]
B: 'static,
pub fn into_iter_indexed(self) -> impl Iterator<Item = (u16, B)>
[src]
Turns a container into iterator of messages with parties indexes (1 <= i <= n)
pub fn into_vec(self) -> Vec<B>
[src]
Turns container into vec of n-1
messages
pub fn into_vec_including_me(self, me: B) -> Vec<B>
[src]
Turns container into vec of n
messages (where given message lies at index party_i-1
)
Trait Implementations
impl<B: Debug> Debug for BroadcastMsgs<B>
[src]
impl<B> Index<u16> for BroadcastMsgs<B>
[src]
type Output = B
The returned type after indexing.
fn index(&self, index: u16) -> &Self::Output
[src]
Takes party index i and returns received message (1 <= i <= n)
Panics
Panics if there’s no party with index i (or it’s your party index)
impl<B> IntoIterator for BroadcastMsgs<B>
[src]
type Item = B
The type of the elements being iterated over.
type IntoIter = <Vec<B> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Returns messages in ascending party’s index order
impl<M> MessageContainer for BroadcastMsgs<M>
[src]
type Store = BroadcastMsgsStore<M>
Auto Trait Implementations
impl<B> RefUnwindSafe for BroadcastMsgs<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for BroadcastMsgs<B> where
B: Send,
B: Send,
impl<B> Sync for BroadcastMsgs<B> where
B: Sync,
B: Sync,
impl<B> Unpin for BroadcastMsgs<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for BroadcastMsgs<B> where
B: UnwindSafe,
B: 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>,