Trait io_lifetimes::FromSocket [−][src]
pub trait FromSocket { fn from_socket(owned: OwnedSocket) -> Self; fn from_into_socket<Owned: IntoSocket>(into_owned: Owned) -> Self
where
Self: Sized, { ... } }
Expand description
A trait to express the ability to construct an object from a socket.
Required methods
fn from_socket(owned: OwnedSocket) -> Self
[src]
fn from_socket(owned: OwnedSocket) -> Self
[src]Constructs a new instance of Self
from the given socket.
Provided methods
fn from_into_socket<Owned: IntoSocket>(into_owned: Owned) -> Self where
Self: Sized,
[src]
fn from_into_socket<Owned: IntoSocket>(into_owned: Owned) -> Self where
Self: Sized,
[src]Constructs a new instance of Self
from the given socket converted
from into_owned
.