pub enum ExhaustionBehavior {
Reject,
GracefulDegrade,
Queue,
}Expand description
What happens when attention is exhausted?
Variants§
Reject
Reject new coupling attempts
GracefulDegrade
Gracefully degrade by weakening existing couplings
Queue
Queue new couplings for later
Trait Implementations§
Source§impl Clone for ExhaustionBehavior
impl Clone for ExhaustionBehavior
Source§fn clone(&self) -> ExhaustionBehavior
fn clone(&self) -> ExhaustionBehavior
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 ExhaustionBehavior
impl Debug for ExhaustionBehavior
Source§impl<'de> Deserialize<'de> for ExhaustionBehavior
impl<'de> Deserialize<'de> for ExhaustionBehavior
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExhaustionBehavior
impl PartialEq for ExhaustionBehavior
Source§impl Serialize for ExhaustionBehavior
impl Serialize for ExhaustionBehavior
impl Copy for ExhaustionBehavior
impl Eq for ExhaustionBehavior
impl StructuralPartialEq for ExhaustionBehavior
Auto Trait Implementations§
impl Freeze for ExhaustionBehavior
impl RefUnwindSafe for ExhaustionBehavior
impl Send for ExhaustionBehavior
impl Sync for ExhaustionBehavior
impl Unpin for ExhaustionBehavior
impl UnwindSafe for ExhaustionBehavior
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.