pub trait VirtualIoSource:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn remove_handler(&mut self);
fn poll_read_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<usize>>;
fn poll_write_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<usize>>;
}
Expand description
Represents an IO source
Required Methods§
Sourcefn remove_handler(&mut self)
fn remove_handler(&mut self)
Removes a previously registered waker using a token
Implementors§
impl VirtualIoSource for CompositeTcpListener
impl VirtualIoSource for LocalTcpListener
Available on crate feature
host-net
only.impl VirtualIoSource for LocalTcpStream
Available on crate feature
host-net
only.impl VirtualIoSource for LocalUdpSocket
Available on crate feature
host-net
only.