Struct eternity::RateLimitInfo [−][src]
Describes the rate limit encountered.
If this value is returned, the callee informs about a rate limit.
The term hit
represents one attempt to hit the rate limit.
Fields
rate_limit: Duration
Time to elapse in order to invoke a command again.
active_delays: u32
Amount of active delays by this target.
is_first_try: bool
Whether this is the first time the rate limit info has been returned for the bucket without the rate limit to elapse.
action: RateLimitAction
Action taken for this rate limit.
Delay
never occurs, as a value is returned after awaiting the delay.
cached: Option<Value>
If a value has been cached, this field will yield a value.
Trait Implementations
impl<Value: Clone> Clone for RateLimitInfo<Value>
[src]
fn clone(&self) -> RateLimitInfo<Value>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Value: Debug + Clone> Debug for RateLimitInfo<Value>
[src]
Auto Trait Implementations
impl<Value> RefUnwindSafe for RateLimitInfo<Value> where
Value: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Value> Send for RateLimitInfo<Value> where
Value: Send,
Value: Send,
impl<Value> Sync for RateLimitInfo<Value> where
Value: Sync,
Value: Sync,
impl<Value> Unpin for RateLimitInfo<Value> where
Value: Unpin,
Value: Unpin,
impl<Value> UnwindSafe for RateLimitInfo<Value> where
Value: UnwindSafe,
Value: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,