pub struct AsyncIO;
Expand description
Dummy object implementing reactor common interfaces on top of async-io
Trait Implementations§
Source§impl Ord for AsyncIO
impl Ord for AsyncIO
Source§impl PartialOrd for AsyncIO
impl PartialOrd for AsyncIO
Source§impl Reactor for AsyncIO
impl Reactor for AsyncIO
Source§type TcpStream = Async<TcpStream>
type TcpStream = Async<TcpStream>
The type representing a TCP stream (after tcp_connect) for this reactor
Source§fn register<H: Read + Write + AsSysFd + Send + 'static>(
&self,
socket: H,
) -> Result<impl AsyncRead + AsyncWrite + Send + Unpin + 'static>
fn register<H: Read + Write + AsSysFd + Send + 'static>( &self, socket: H, ) -> Result<impl AsyncRead + AsyncWrite + Send + Unpin + 'static>
Register a synchronous handle, returning an asynchronous one
Source§fn sleep(&self, dur: Duration) -> impl Future<Output = ()> + Send + 'static
fn sleep(&self, dur: Duration) -> impl Future<Output = ()> + Send + 'static
Sleep for the given duration
Source§fn interval(
&self,
dur: Duration,
) -> impl Stream<Item = Instant> + Send + 'static
fn interval( &self, dur: Duration, ) -> impl Stream<Item = Instant> + Send + 'static
Stream that yields at every given interval
Source§fn tcp_connect_addr(
&self,
addr: SocketAddr,
) -> impl Future<Output = Result<Self::TcpStream>> + Send + 'static
fn tcp_connect_addr( &self, addr: SocketAddr, ) -> impl Future<Output = Result<Self::TcpStream>> + Send + 'static
Create a TcpStream by connecting to a remote host
impl Copy for AsyncIO
impl Eq for AsyncIO
impl StructuralPartialEq for AsyncIO
Auto Trait Implementations§
impl Freeze for AsyncIO
impl RefUnwindSafe for AsyncIO
impl Send for AsyncIO
impl Sync for AsyncIO
impl Unpin for AsyncIO
impl UnwindSafe for AsyncIO
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more