Trait io_lifetimes::AsSocket [−][src]
pub trait AsSocket {
fn as_socket(&self) -> BorrowedSocket<'_>;
}
Expand description
A trait to borrow the socket from an underlying object.
Required methods
fn as_socket(&self) -> BorrowedSocket<'_>
fn as_socket(&self) -> BorrowedSocket<'_>
Borrows the socket.