Trait Mode

Source
pub trait Mode {
    // Required method
    fn is_keep_alive() -> bool;
}
Expand description

Trait defining the behavior of different connection modes.

Required Methods§

Source

fn is_keep_alive() -> bool

Returns whether this mode supports keep-alive connections.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§