pub enum BackoffKind {
Low,
Medium,
High,
}
Expand description
Describes the type of backoff should be applied.
Variants§
Low
Use the lowest configured backoff duration.
This applies to connection problems where there is a chance that they will be resolved after the short duration.
Medium
Use a slightly higher duration to put a peer in timeout
This applies to more severe connection problems where there is a lower chance that they will be resolved.
High
Use the max configured backoff duration.
This is intended for spammers, or bad peers in general.
Implementations§
Trait Implementations§
Source§impl Clone for BackoffKind
impl Clone for BackoffKind
Source§fn clone(&self) -> BackoffKind
fn clone(&self) -> BackoffKind
Returns a copy 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 moreSource§impl Debug for BackoffKind
impl Debug for BackoffKind
Source§impl PartialEq for BackoffKind
impl PartialEq for BackoffKind
impl Eq for BackoffKind
impl StructuralPartialEq for BackoffKind
Auto Trait Implementations§
impl Freeze for BackoffKind
impl RefUnwindSafe for BackoffKind
impl Send for BackoffKind
impl Sync for BackoffKind
impl Unpin for BackoffKind
impl UnwindSafe for BackoffKind
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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Low
: 0 bytesMedium
: 0 bytesHigh
: 0 bytes