pub enum OnExhaustion {
Refuse,
Queue {
max_wait_ms: u64,
},
}Expand description
What a policy declares when the pool has no room.
Variants§
Refuse
Refuse at once: transport_unsent, nothing sent.
Queue
Wait for room at most this long, and never past the attempt budget.
Trait Implementations§
Source§impl Clone for OnExhaustion
impl Clone for OnExhaustion
impl Copy for OnExhaustion
Source§impl Debug for OnExhaustion
impl Debug for OnExhaustion
impl Eq for OnExhaustion
Source§impl PartialEq for OnExhaustion
impl PartialEq for OnExhaustion
Source§impl Serialize for OnExhaustion
impl Serialize for OnExhaustion
impl StructuralPartialEq for OnExhaustion
Auto Trait Implementations§
impl Freeze for OnExhaustion
impl RefUnwindSafe for OnExhaustion
impl Send for OnExhaustion
impl Sync for OnExhaustion
impl Unpin for OnExhaustion
impl UnsafeUnpin for OnExhaustion
impl UnwindSafe for OnExhaustion
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