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§
fn connect<I, E>(&mut self, endpoints: I) -> &mut Self
fn bind<I, E>(&mut self, endpoints: I) -> &mut Self
fn mechanism<M>(&mut self, mechanism: M) -> &mut Self
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.