Trait interprocess::local_socket::traits::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.

Object Safety§

This trait is not object safe.

Implementors§