pub trait VirtualSocket:
AsyncRead
+ AsyncWrite
+ Unpin
+ Send
+ Sync
+ Debug {
// Required method
fn set_socket_option(&self, opt: VirtualSockOpt) -> Result<()>;
}Expand description
A “virtual” socket that supports async read and write operations.
Required Methods§
Sourcefn set_socket_option(&self, opt: VirtualSockOpt) -> Result<()>
fn set_socket_option(&self, opt: VirtualSockOpt) -> Result<()>
Set a socket option.