Trait IntoInnerSocket

Source
pub trait IntoInnerSocket: Sized
where Self: From<Self::Socket>,
{ type Socket: InnerSocket<Self>; // Required methods fn socket(self) -> Self::Socket; fn kind() -> SocketType; }
Expand description

The IntoInnerSocket trait is implemented for all wrapper types. This makes implementing other traits a matter of saying a given type implements them.

Required Associated Types§

Required Methods§

Source

fn socket(self) -> Self::Socket

Any type implementing IntoInnerSocket must have a way of returning an InnerSocket.

Source

fn kind() -> SocketType

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.

Implementors§