pub trait Protocol:
Debug
+ Clone
+ Send
+ 'static {
type Endpoint: Endpoint<Self>;
// Required methods
fn family_type(&self) -> i32;
fn socket_type(&self) -> i32;
fn protocol_type(&self) -> i32;
unsafe fn uninitialized(&self) -> Self::Endpoint;
}
Required Associated Types§
Required Methods§
Sourcefn family_type(&self) -> i32
fn family_type(&self) -> i32
Reurns a value suitable for passing as the domain argument.
Sourcefn socket_type(&self) -> i32
fn socket_type(&self) -> i32
Returns a value suitable for passing as the type argument.
Sourcefn protocol_type(&self) -> i32
fn protocol_type(&self) -> i32
Returns a value suitable for passing as the protocol argument.
unsafe fn uninitialized(&self) -> Self::Endpoint
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.