Enum libp2p_ratelimit::RateLimitedErr
source · pub enum RateLimitedErr<TErr> {
Underlying(TErr),
LimiterError(Error),
}
Expand description
Error that can be generated by the rate limiter.
Variants
Underlying(TErr)
Error in the underlying transport layer.
LimiterError(Error)
Error while creating a rate limiter.
Trait Implementations
sourceimpl<TErr: Debug> Debug for RateLimitedErr<TErr>
impl<TErr: Debug> Debug for RateLimitedErr<TErr>
sourceimpl<TErr> Display for RateLimitedErr<TErr>where
TErr: Display,
impl<TErr> Display for RateLimitedErr<TErr>where
TErr: Display,
sourceimpl<TErr> Error for RateLimitedErr<TErr>where
TErr: Error + 'static,
impl<TErr> Error for RateLimitedErr<TErr>where
TErr: Error + 'static,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<TErr> !RefUnwindSafe for RateLimitedErr<TErr>
impl<TErr> Send for RateLimitedErr<TErr>where
TErr: Send,
impl<TErr> Sync for RateLimitedErr<TErr>where
TErr: Sync,
impl<TErr> Unpin for RateLimitedErr<TErr>where
TErr: Unpin,
impl<TErr> !UnwindSafe for RateLimitedErr<TErr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more