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§
Sourcefn socket_open(
&self,
domain: SocketDomain,
kind: SocketType,
protocol: Option<SocketProtocol>,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<Self::Socket>> + Send
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".