Enum throttling::token_bucket::ThrottleResult
source · pub enum ThrottleResult {
Success,
Throttled(Duration),
AlreadyThrottled,
}
Variants§
Trait Implementations§
source§impl Debug for ThrottleResult
impl Debug for ThrottleResult
source§impl PartialEq for ThrottleResult
impl PartialEq for ThrottleResult
source§fn eq(&self, other: &ThrottleResult) -> bool
fn eq(&self, other: &ThrottleResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ThrottleResult
impl StructuralPartialEq for ThrottleResult
Auto Trait Implementations§
impl RefUnwindSafe for ThrottleResult
impl Send for ThrottleResult
impl Sync for ThrottleResult
impl Unpin for ThrottleResult
impl UnwindSafe for ThrottleResult
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