pub trait SocketSetOption<O: SocketOption>: SocketOperation {
// Required method
fn socket_set_option(
&self,
socket: &Self::Socket,
option: O,
value: O::Value,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send;
}Expand description
Set a typed socket option. See SocketOptions for the shared option contract; the opposite operation is not required.
Required Methods§
Sourcefn socket_set_option(
&self,
socket: &Self::Socket,
option: O,
value: O::Value,
cancellation: &Cancellation,
) -> impl Future<Output = OperationResult<()>> + Send
fn socket_set_option( &self, socket: &Self::Socket, option: O, value: O::Value, cancellation: &Cancellation, ) -> impl Future<Output = OperationResult<()>> + Send
Set the option and wait for syscall completion. This borrows the descriptor and does not change its ownership.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".