pub struct Smol;
Expand description
Dummy object implementing async common interfaces on top of smol
Trait Implementations§
Source§impl Executor for Smol
impl Executor for Smol
Source§impl Ord for Smol
impl Ord for Smol
Source§impl PartialOrd for Smol
impl PartialOrd for Smol
Source§impl Reactor for Smol
impl Reactor for Smol
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 Smol
impl Eq for Smol
impl RuntimeKit for Smol
impl StructuralPartialEq for Smol
Auto Trait Implementations§
impl Freeze for Smol
impl RefUnwindSafe for Smol
impl Send for Smol
impl Sync for Smol
impl Unpin for Smol
impl UnwindSafe for Smol
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