#[non_exhaustive]pub enum LimitKind {
Connections,
PerListener,
PerSource,
BufferBudget,
OutputBudget,
CompletionQueue,
ProxyHeader,
AcceptBatch,
ReadBuffer,
Amplification,
SourceBudget,
Descriptors,
}Expand description
Which configured bound was hit.
assert_eq!(net_io::LimitKind::OutputBudget.as_str(), "output_budget");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.
Connections
The global connection cap.
PerListener
A listener’s connection cap.
PerSource
The per-source concurrency cap.
BufferBudget
The total buffer budget.
OutputBudget
A connection’s output budget.
CompletionQueue
A worker’s completion queue.
ProxyHeader
The PROXY header size.
AcceptBatch
The accept batch.
ReadBuffer
A connection’s read buffer (full and not consumed).
Amplification
The UDP amplification guard.
SourceBudget
A UDP source budget.
Descriptors
The process’s descriptor limit.
Implementations§
Trait Implementations§
impl Copy for LimitKind
impl Eq for LimitKind
impl StructuralPartialEq for LimitKind
Auto Trait Implementations§
impl Freeze for LimitKind
impl RefUnwindSafe for LimitKind
impl Send for LimitKind
impl Sync for LimitKind
impl Unpin for LimitKind
impl UnsafeUnpin for LimitKind
impl UnwindSafe for LimitKind
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