pub enum OnFailure {
BestEffort,
FailFast,
Collect,
}Expand description
What to do when one of the per-peer fan-out sends fails.
Variants§
BestEffort
Log per-peer errors and keep going; return Ok if at least one subscriber received the payload (or the roster was empty).
FailFast
Abort on the first per-peer error, without attempting the rest.
Collect
Never short-circuit; always return a full per-peer report.
Trait Implementations§
impl Copy for OnFailure
impl Eq for OnFailure
impl StructuralPartialEq for OnFailure
Auto Trait Implementations§
impl Freeze for OnFailure
impl RefUnwindSafe for OnFailure
impl Send for OnFailure
impl Sync for OnFailure
impl Unpin for OnFailure
impl UnsafeUnpin for OnFailure
impl UnwindSafe for OnFailure
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.