pub trait SocketListen: SocketOperation {
// Required method
fn socket_listen(
&self,
socket: &Self::Socket,
backlog: i32,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send;
}Expand description
Put an existing socket into listening mode.
Required Methods§
Sourcefn socket_listen(
&self,
socket: &Self::Socket,
backlog: i32,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send
fn socket_listen( &self, socket: &Self::Socket, backlog: i32, cancellation: &Cancellation, ) -> impl Future<Output = OperationResult<()>> + Send
Put an existing socket into listening mode using the supplied backlog. This does not create or explicitly bind the socket. OS-specific implicit binding, backlog limits, and repeated-listen behavior are preserved.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".