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§fn register<H: IO + Send + 'static>(
&self,
socket: IOHandle<H>,
) -> Result<impl AsyncIOHandle + Send>
fn register<H: IO + Send + 'static>( &self, socket: IOHandle<H>, ) -> Result<impl AsyncIOHandle + Send>
Register a synchronous handle, returning an asynchronous one
Source§fn interval(&self, dur: Duration) -> impl Stream<Item = Instant>
fn interval(&self, dur: Duration) -> impl Stream<Item = Instant>
Stream that yields at every given interval
Source§fn tcp_connect<'life0, 'async_trait>(
&'life0 self,
addr: SocketAddr,
) -> Pin<Box<dyn Future<Output = Result<impl AsyncIOHandle + Send>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tcp_connect<'life0, 'async_trait>(
&'life0 self,
addr: SocketAddr,
) -> Pin<Box<dyn Future<Output = Result<impl AsyncIOHandle + Send>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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