Trait Protocol

Source
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§

Source

fn family_type(&self) -> i32

Reurns a value suitable for passing as the domain argument.

Source

fn socket_type(&self) -> i32

Returns a value suitable for passing as the type argument.

Source

fn protocol_type(&self) -> i32

Returns a value suitable for passing as the protocol argument.

Source

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.

Implementors§