Skip to main content

Source

Trait Source 

Source
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§

Source

const MAX_IN_FLIGHT: NonZero<usize>

Maximum simultaneous native accept operations on one listener.

Required Associated Types§

Required Methods§

Source

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.

Source

fn can_defer(error: Errno) -> bool

Whether actual descriptor retirement permits one later attempt after this error. This does not establish a pending retirement or identify the error’s origin.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§