pub struct RuntimeWrapper<'a>(/* private fields */);
Expand description
Wrapper for anything that implements InternalRuntime, used to add a Runtime impl.
Trait Implementations§
Source§impl<'a> Runtime<'a> for RuntimeWrapper<'a>
impl<'a> Runtime<'a> for RuntimeWrapper<'a>
Source§fn push_boxed(&mut self, future: BoxFuture<'static, ()>)
fn push_boxed(&mut self, future: BoxFuture<'static, ()>)
Adds a new future to the queue to be completed.
Source§fn spawn_boxed(
&'a mut self,
future: BoxFuture<'static, ()>,
) -> SpawnedFuture<'a> ⓘ
fn spawn_boxed( &'a mut self, future: BoxFuture<'static, ()>, ) -> SpawnedFuture<'a> ⓘ
Adds a new future to the queue to be completed and returns a future waiting for the added
future’s completion.
Source§fn push(&mut self, future: impl Future<Output = ()> + 'static)
fn push(&mut self, future: impl Future<Output = ()> + 'static)
Adds a new future to the queue to be completed.
Auto Trait Implementations§
impl<'a> Freeze for RuntimeWrapper<'a>
impl<'a> !RefUnwindSafe for RuntimeWrapper<'a>
impl<'a> !Send for RuntimeWrapper<'a>
impl<'a> !Sync for RuntimeWrapper<'a>
impl<'a> Unpin for RuntimeWrapper<'a>
impl<'a> !UnwindSafe for RuntimeWrapper<'a>
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