pub struct Tokio { /* private fields */ }
Expand description
Dummy object implementing async common interfaces on top of tokio
Implementations§
Trait Implementations§
Source§impl Executor for Tokio
impl Executor for Tokio
Source§impl Reactor for Tokio
impl Reactor for Tokio
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 RuntimeKit for Tokio
Auto Trait Implementations§
impl Freeze for Tokio
impl RefUnwindSafe for Tokio
impl Send for Tokio
impl Sync for Tokio
impl Unpin for Tokio
impl UnwindSafe for Tokio
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