pub enum ThrottleStrategy {
Delay,
Reject,
Drop,
}Variants§
Delay
Queue messages until capacity available (default)
Reject
Return error immediately when throttled
Drop
Silently discard excess messages
Trait Implementations§
Source§impl Clone for ThrottleStrategy
impl Clone for ThrottleStrategy
Source§fn clone(&self) -> ThrottleStrategy
fn clone(&self) -> ThrottleStrategy
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 moreSource§impl Debug for ThrottleStrategy
impl Debug for ThrottleStrategy
Source§impl Default for ThrottleStrategy
impl Default for ThrottleStrategy
Source§fn default() -> ThrottleStrategy
fn default() -> ThrottleStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ThrottleStrategy
impl PartialEq for ThrottleStrategy
impl Eq for ThrottleStrategy
impl StructuralPartialEq for ThrottleStrategy
Auto Trait Implementations§
impl Freeze for ThrottleStrategy
impl RefUnwindSafe for ThrottleStrategy
impl Send for ThrottleStrategy
impl Sync for ThrottleStrategy
impl Unpin for ThrottleStrategy
impl UnsafeUnpin for ThrottleStrategy
impl UnwindSafe for ThrottleStrategy
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