pub trait SocketConnect: SocketOperation {
// Required method
fn socket_connect(
&self,
socket: &Self::Socket,
address: SocketAddress,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send;
}Expand description
Connect an existing socket to a peer IP address.
Required Methods§
Sourcefn socket_connect(
&self,
socket: &Self::Socket,
address: SocketAddress,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send
fn socket_connect( &self, socket: &Self::Socket, address: SocketAddress, cancellation: &Cancellation, ) -> impl Future<Output = OperationResult<()>> + Send
Connect an existing socket, preserving any prior local binding or configuration. A cancelled connect can still complete in the kernel; it does not make the descriptor reusable for another connection attempt.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".