pub struct Noop;
Expand description
Dummy object implementing async common interfaces on top of smol
Trait Implementations§
Source§impl Executor for Noop
impl Executor for Noop
Source§type Task<T: Send + 'static> = NTask<T>
type Task<T: Send + 'static> = NTask<T>
The type representing the tasks the are returned when spawning a Future on the executor
Source§impl Ord for Noop
impl Ord for Noop
Source§impl PartialOrd for Noop
impl PartialOrd for Noop
Source§impl Reactor for Noop
impl Reactor for Noop
Source§type TcpStream = DummyIO
type TcpStream = DummyIO
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 Noop
impl Eq for Noop
impl RuntimeKit for Noop
impl StructuralPartialEq for Noop
Auto Trait Implementations§
impl Freeze for Noop
impl RefUnwindSafe for Noop
impl Send for Noop
impl Sync for Noop
impl Unpin for Noop
impl UnwindSafe for Noop
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