#[non_exhaustive]pub enum ConfigReason {
Zero,
TooLarge {
max: u64,
},
TooSmall {
min: u64,
},
AboveGlobal,
BelowTick,
WindowBelowCheck,
BudgetBelowWorkers {
need: u64,
},
DescriptorLimit {
have: u64,
need: u64,
},
Missing,
NotListening,
Inconsistent,
Malformed,
}Expand description
The rule a configuration value broke.
use net_io::ConfigReason;
assert_eq!(ConfigReason::Zero.to_string(), "zero is not allowed here");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.
Zero
Zero where zero is meaningless.
TooLarge
Above the maximum.
TooSmall
Below the minimum.
AboveGlobal
A per-listener or per-source cap above the global cap.
BelowTick
A deadline shorter than one timer tick.
WindowBelowCheck
The minimum-rate window is shorter than its check interval.
BudgetBelowWorkers
The buffer budget is below workers times the largest class times two.
DescriptorLimit
The caps exceed the process’s descriptor limit.
Missing
A required part is not set.
NotListening
An adopted socket is not a listening socket.
Inconsistent
Values that contradict each other.
Malformed
A byte or character the value cannot contain (a NUL in a socket path).
Trait Implementations§
Source§impl Clone for ConfigReason
impl Clone for ConfigReason
impl Copy for ConfigReason
Source§impl Debug for ConfigReason
impl Debug for ConfigReason
Source§impl Display for ConfigReason
impl Display for ConfigReason
impl Eq for ConfigReason
Source§impl PartialEq for ConfigReason
impl PartialEq for ConfigReason
impl StructuralPartialEq for ConfigReason
Auto Trait Implementations§
impl Freeze for ConfigReason
impl RefUnwindSafe for ConfigReason
impl Send for ConfigReason
impl Sync for ConfigReason
impl Unpin for ConfigReason
impl UnsafeUnpin for ConfigReason
impl UnwindSafe for ConfigReason
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