Trait Socket

Source
pub trait Socket<P: Protocol>:
    AsIoContext
    + AsRawFd
    + Send
    + 'static {
    // Required methods
    unsafe fn from_raw_fd(_: &IoContext, pro: P, fd: RawFd) -> Self;
    fn protocol(&self) -> P;
}

Required Methods§

Source

unsafe fn from_raw_fd(_: &IoContext, pro: P, fd: RawFd) -> Self

Source

fn protocol(&self) -> P

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§