pub struct FanoutReport<T, E> { /* private fields */ }Expand description
Complete stable-order fanout report.
Implementations§
Source§impl<T, E> FanoutReport<T, E>
impl<T, E> FanoutReport<T, E>
Sourcepub fn outcomes(&self) -> &[TargetOutcome<T, E>]
pub fn outcomes(&self) -> &[TargetOutcome<T, E>]
Returns outcomes in original target order.
Sourcepub fn into_outcomes(self) -> Vec<TargetOutcome<T, E>>
pub fn into_outcomes(self) -> Vec<TargetOutcome<T, E>>
Consumes the report and returns outcomes in original target order.
Sourcepub fn success_count(&self) -> usize
pub fn success_count(&self) -> usize
Returns successful target count.
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
Returns failed target count.
Sourcepub fn cancelled_count(&self) -> usize
pub fn cancelled_count(&self) -> usize
Returns cancelled target count.
Sourcepub fn timed_out_count(&self) -> usize
pub fn timed_out_count(&self) -> usize
Returns timed-out target count.
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Returns whether every target succeeded.
Trait Implementations§
Source§impl<T: Clone, E: Clone> Clone for FanoutReport<T, E>
impl<T: Clone, E: Clone> Clone for FanoutReport<T, E>
Source§fn clone(&self) -> FanoutReport<T, E>
fn clone(&self) -> FanoutReport<T, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: PartialEq, E: PartialEq> PartialEq for FanoutReport<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq for FanoutReport<T, E>
Source§fn eq(&self, other: &FanoutReport<T, E>) -> bool
fn eq(&self, other: &FanoutReport<T, E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq, E: Eq> Eq for FanoutReport<T, E>
impl<T, E> StructuralPartialEq for FanoutReport<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for FanoutReport<T, E>
impl<T, E> RefUnwindSafe for FanoutReport<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for FanoutReport<T, E>
impl<T, E> Sync for FanoutReport<T, E>
impl<T, E> Unpin for FanoutReport<T, E>
impl<T, E> UnsafeUnpin for FanoutReport<T, E>
impl<T, E> UnwindSafe for FanoutReport<T, E>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.