[−][src]Struct round_based::containers::P2PMsgs
Received P2P messages from every protocol participant
Implementations
impl<B> P2PMsgs<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(mut self: 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 P2PMsgs<B>[src]
impl<B> Index<u16> for P2PMsgs<B>[src]
type Output = B
The returned type after indexing.
pub 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 P2PMsgs<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?
pub fn into_iter(self) -> Self::IntoIter[src]
Returns messages in ascending party's index order
impl<M> MessageContainer for P2PMsgs<M>[src]
type Store = P2PMsgsStore<M>
Auto Trait Implementations
impl<B> RefUnwindSafe for P2PMsgs<B> where
B: RefUnwindSafe, [src]
B: RefUnwindSafe,
impl<B> Send for P2PMsgs<B> where
B: Send, [src]
B: Send,
impl<B> Sync for P2PMsgs<B> where
B: Sync, [src]
B: Sync,
impl<B> Unpin for P2PMsgs<B> where
B: Unpin, [src]
B: Unpin,
impl<B> UnwindSafe for P2PMsgs<B> where
B: UnwindSafe, [src]
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>,