#[non_exhaustive]pub enum RefusalCause {
GlobalCap,
ListenerCap,
SourceCap,
LaneReserve,
Gate(u16),
Session,
Busy,
DoorClosed,
Shed,
Lockdown,
}Expand description
Why a connection was refused.
assert_eq!(net_io::RefusalCause::SourceCap.as_str(), "source_cap");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GlobalCap
The global connection cap was reached.
ListenerCap
The listener’s connection cap was reached.
SourceCap
The per-source concurrency cap was reached.
LaneReserve
The lane’s reservation was used up.
Gate(u16)
The gate refused, with its code.
Session
The session factory refused.
Busy
The blocking driver had no free worker.
DoorClosed
The door was closed.
Shed
The control line shed this lane.
Lockdown
The control line is in lockdown and the listener does not allow it.
Implementations§
Trait Implementations§
Source§impl Clone for RefusalCause
impl Clone for RefusalCause
impl Copy for RefusalCause
Source§impl Debug for RefusalCause
impl Debug for RefusalCause
impl Eq for RefusalCause
Source§impl Hash for RefusalCause
impl Hash for RefusalCause
Source§impl PartialEq for RefusalCause
impl PartialEq for RefusalCause
impl StructuralPartialEq for RefusalCause
Auto Trait Implementations§
impl Freeze for RefusalCause
impl RefUnwindSafe for RefusalCause
impl Send for RefusalCause
impl Sync for RefusalCause
impl Unpin for RefusalCause
impl UnsafeUnpin for RefusalCause
impl UnwindSafe for RefusalCause
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