Trait ListenerExt

Source
pub trait ListenerExt: Listener {
    // Provided method
    fn incoming(&self) -> Incoming<'_, Self>  { ... }
}
Expand description

Methods derived from the interface of Listener.

Provided Methods§

Source

fn incoming(&self) -> Incoming<'_, Self>

Creates an infinite iterator which calls .accept() with each iteration. Used together with for loops to conveniently create a main loop for a socket server.

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§