Trait io_lifetimes::AsSocket
1.63.0 · source · pub trait AsSocket {
// Required method
fn as_socket(&self) -> BorrowedSocket<'_>;
}
Expand description
A trait to borrow the socket from an underlying object.
Required Methods§
sourcefn as_socket(&self) -> BorrowedSocket<'_>
fn as_socket(&self) -> BorrowedSocket<'_>
Borrows the socket.