pub trait SocketAccept: SocketOperation {
// Required method
fn socket_accept(
&self,
socket: &Self::Socket,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<(Self::Socket, SocketAddress)>> + Send;
}Expand description
Accept one connection from a listening socket.
Required Methods§
Sourcefn socket_accept(
&self,
socket: &Self::Socket,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<(Self::Socket, SocketAddress)>> + Send
fn socket_accept( &self, socket: &Self::Socket, cancellation: &Cancellation, ) -> impl Future<Output = OperationResult<(Self::Socket, SocketAddress)>> + Send
Accept one connection from a listening socket, returning an owned nonblocking socket and its peer address.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".