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§type Task<T: Send + 'static> = STask<T>
type Task<T: Send + 'static> = STask<T>
The type representing the tasks the are returned when spawning a Future on the executor
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§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 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