pub trait IntoInnerSocket: Sized{
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§
type Socket: InnerSocket<Self>
Required Methods§
Sourcefn socket(self) -> Self::Socket
fn socket(self) -> Self::Socket
Any type implementing IntoInnerSocket
must have a way of returning an InnerSocket.
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.