pub struct ThreadedHostAwait { /* private fields */ }Expand description
Runs HostAwaitBridge::submit on a fresh std thread.
submit returns after the thread is spawned. The closure sees a
cancellation probe and must not block the worker itself. Tokio is not
required. If the ticket is cancelled before delivery, the result is
dropped and finish_host_await returns HostAwaitError::Stale.
Implementations§
Trait Implementations§
Source§impl Debug for ThreadedHostAwait
impl Debug for ThreadedHostAwait
Source§impl HostAwaitBridge for ThreadedHostAwait
impl HostAwaitBridge for ThreadedHostAwait
fn submit(&self, req: HostAwaitRequest, done: HostAwaitCompleter)
Auto Trait Implementations§
impl !RefUnwindSafe for ThreadedHostAwait
impl !UnwindSafe for ThreadedHostAwait
impl Freeze for ThreadedHostAwait
impl Send for ThreadedHostAwait
impl Sync for ThreadedHostAwait
impl Unpin for ThreadedHostAwait
impl UnsafeUnpin for ThreadedHostAwait
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