pub struct TokioDriver { /* private fields */ }Expand description
Tokio-backed Runtime Driver used by the native App Runner.
Implementations§
Source§impl TokioDriver
impl TokioDriver
Sourcepub fn request_shutdown(&self)
pub fn request_shutdown(&self)
Requests cooperative Kernel shutdown.
Trait Implementations§
Source§impl Clone for TokioDriver
impl Clone for TokioDriver
Source§fn clone(&self) -> TokioDriver
fn clone(&self) -> TokioDriver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokioDriver
impl Debug for TokioDriver
Source§impl Default for TokioDriver
impl Default for TokioDriver
Source§impl RuntimeDriver for TokioDriver
impl RuntimeDriver for TokioDriver
Source§fn sleep_until(&self, deadline: Duration) -> LocalBoxFuture<'static, ()>
fn sleep_until(&self, deadline: Duration) -> LocalBoxFuture<'static, ()>
Waits until the supplied monotonic instant.
Source§fn yield_now(&self) -> LocalBoxFuture<'static, ()>
fn yield_now(&self) -> LocalBoxFuture<'static, ()>
Cooperatively yields to other work on the local task lane.
Source§fn wait_for_runtime_event(
&self,
deadline: Duration,
) -> LocalBoxFuture<'static, ()>
fn wait_for_runtime_event( &self, deadline: Duration, ) -> LocalBoxFuture<'static, ()>
Waits for Runner control work or until the supplied monotonic instant. Read more
Source§fn jitter(&self, maximum: Duration) -> Duration
fn jitter(&self, maximum: Duration) -> Duration
Supplies deterministic or entropy-backed jitter bounded by the policy value.
Source§fn spawn_local(&self, task: LocalTask) -> Result<DriverTask, SpawnError>
fn spawn_local(&self, task: LocalTask) -> Result<DriverTask, SpawnError>
Schedules Kernel-owned work on the local task lane.
Source§fn shutdown_requested(&self) -> bool
fn shutdown_requested(&self) -> bool
Reports whether the embedding Runner requested shutdown.
Auto Trait Implementations§
impl !RefUnwindSafe for TokioDriver
impl !Send for TokioDriver
impl !Sync for TokioDriver
impl !UnwindSafe for TokioDriver
impl Freeze for TokioDriver
impl Unpin for TokioDriver
impl UnsafeUnpin for TokioDriver
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