pub trait Source {
type Failure<F: From<Errno>>: From<Errno> + Into<F>;
const MAX_IN_FLIGHT: NonZero<usize>;
// Required methods
fn is_retryable(error: Errno) -> bool;
fn can_defer(error: Errno) -> bool;
}Expand description
Native accept failures retain the host’s readiness-only terminal cases.
Required Associated Constants§
Sourceconst MAX_IN_FLIGHT: NonZero<usize>
const MAX_IN_FLIGHT: NonZero<usize>
Maximum simultaneous native accept operations on one listener.
Required Associated Types§
Required Methods§
Sourcefn is_retryable(error: Errno) -> bool
fn is_retryable(error: Errno) -> bool
Whether one native accept failure permits another attempt on the listener. Resource exhaustion never permits an unconditional retry; retain its exact error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".