pub struct AsyncStd;
Available on crate feature
rt-async-std
only.Expand description
Runtime implementation, which works with async-std.
Trait Implementations
sourceimpl Runtime for AsyncStd
impl Runtime for AsyncStd
type Interval = Interval
type Interval = Interval
A future stream, which returns items in a previously specified interval. The item type is not important. Read more
type Delay = Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
type Delay = Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
A future, which resolves after a previously specified amount of time. The output type is not important. Read more
sourceimpl TraceRuntime for AsyncStd
impl TraceRuntime for AsyncStd
type Receiver = Receiver<BatchMessage>
type Receiver = Receiver<BatchMessage>
A future stream to receive the batch messages from channels.
type Sender = Sender<BatchMessage>
type Sender = Sender<BatchMessage>
A batch messages sender that could be sent across thread safely.
sourcefn batch_message_channel(
&self,
capacity: usize
) -> (<AsyncStd as TraceRuntime>::Sender, <AsyncStd as TraceRuntime>::Receiver)
fn batch_message_channel(
&self,
capacity: usize
) -> (<AsyncStd as TraceRuntime>::Sender, <AsyncStd as TraceRuntime>::Receiver)
Return the sender and receiver used to send batch message between tasks.
Auto Trait Implementations
impl RefUnwindSafe for AsyncStd
impl Send for AsyncStd
impl Sync for AsyncStd
impl Unpin for AsyncStd
impl UnwindSafe for AsyncStd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more