Skip to main content

SocketOpen

Trait SocketOpen 

Source
pub trait SocketOpen: SocketOperation {
    // Required method
    fn socket_open(
        &self,
        domain: SocketDomain,
        kind: SocketType,
        protocol: Option<SocketProtocol>,
        cancellation: &Cancellation,
    ) -> impl Future<Output = OperationResult<Self::Socket>> + Send;
}
Expand description

Create an unbound IP socket through the scheduler.

Required Methods§

Source

fn socket_open( &self, domain: SocketDomain, kind: SocketType, protocol: Option<SocketProtocol>, cancellation: &Cancellation, ) -> impl Future<Output = OperationResult<Self::Socket>> + Send

Open a nonblocking socket without binding, listening, or connecting. None selects the OS default protocol for the requested domain and type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§