Trait BuildSocket

Source
pub trait BuildSocket: GetSocketConfig + Sized {
    // Provided methods
    fn connect<I, E>(&mut self, endpoints: I) -> &mut Self
       where I: IntoIterator<Item = E>,
             E: Into<Endpoint> { ... }
    fn bind<I, E>(&mut self, endpoints: I) -> &mut Self
       where I: IntoIterator<Item = E>,
             E: Into<Endpoint> { ... }
    fn mechanism<M>(&mut self, mechanism: M) -> &mut Self
       where M: Into<Mechanism> { ... }
}
Expand description

A set of provided methods for a socket builder.

Provided Methods§

Source

fn connect<I, E>(&mut self, endpoints: I) -> &mut Self
where I: IntoIterator<Item = E>, E: Into<Endpoint>,

Source

fn bind<I, E>(&mut self, endpoints: I) -> &mut Self
where I: IntoIterator<Item = E>, E: Into<Endpoint>,

Source

fn mechanism<M>(&mut self, mechanism: M) -> &mut Self
where M: Into<Mechanism>,

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§