Struct io_lifetimes::views::SocketlikeView [−][src]
pub struct SocketlikeView<'socketlike, Target: FromSocketlike + IntoSocketlike> { /* fields omitted */ }
Expand description
A non-owning view of a resource which dereferences to a &Target
or
&mut Target
. These are returned by AsSocketlike::as_socketlike_view
.
Implementations
Construct a temporary Target
from raw and wrap it in a
SocketlikeView
object.
Safety
raw
must be a valid raw socketlike referencing a resource that
outlives the resulting view.