Skip to main content

VirtualSocket

Trait VirtualSocket 

Source
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§

Source

fn set_socket_option(&self, opt: VirtualSockOpt) -> Result<()>

Set a socket option.

Implementors§