pub struct OwnedReactor(/* private fields */);Expand description
Keeps a Tokio runtime created by Exec::owned alive for as long as
whatever created it.
Hold it beside every handle onto that runtime and drop it last. Dropping it shuts the runtime down in the background rather than blocking, because the last owner may go out of scope on one of that runtime’s own worker threads, where dropping a Tokio runtime panics.
Trait Implementations§
Source§impl Debug for OwnedReactor
impl Debug for OwnedReactor
Source§impl Drop for OwnedReactor
impl Drop for OwnedReactor
Auto Trait Implementations§
impl !Freeze for OwnedReactor
impl RefUnwindSafe for OwnedReactor
impl Send for OwnedReactor
impl Sync for OwnedReactor
impl Unpin for OwnedReactor
impl UnsafeUnpin for OwnedReactor
impl UnwindSafe for OwnedReactor
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