pub enum OutboundEvent<T, R> {
Attempt {
value: T,
attempt: u32,
},
Retry {
value: T,
attempt: u32,
delay_ms: u64,
error: String,
},
Sent {
value: T,
attempt: u32,
result: R,
},
Exhausted {
value: T,
attempt: u32,
error: String,
},
UpstreamComplete,
UpstreamError {
error: String,
},
}Expand description
OutboundEvent variants.
Variants§
Attempt
Attempt variant.
Retry
Retry variant.
Fields
§
value: Tvalue field for value.
Sent
Sent variant.
Exhausted
Exhausted variant.
Fields
§
value: Tvalue field for value.
UpstreamComplete
UpstreamComplete variant.
UpstreamError
UpstreamError variant.
Trait Implementations§
Source§impl<T: Clone, R: Clone> Clone for OutboundEvent<T, R>
impl<T: Clone, R: Clone> Clone for OutboundEvent<T, R>
Source§fn clone(&self) -> OutboundEvent<T, R>
fn clone(&self) -> OutboundEvent<T, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Eq, R: Eq> Eq for OutboundEvent<T, R>
impl<T, R> StructuralPartialEq for OutboundEvent<T, R>
Auto Trait Implementations§
impl<T, R> Freeze for OutboundEvent<T, R>
impl<T, R> RefUnwindSafe for OutboundEvent<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for OutboundEvent<T, R>
impl<T, R> Sync for OutboundEvent<T, R>
impl<T, R> Unpin for OutboundEvent<T, R>
impl<T, R> UnsafeUnpin for OutboundEvent<T, R>where
T: UnsafeUnpin,
R: UnsafeUnpin,
impl<T, R> UnwindSafe for OutboundEvent<T, R>where
T: UnwindSafe,
R: 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
Checks if this value is equivalent to the given key. Read more
§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.