pub struct ExecutionContextRestorer { /* private fields */ }
Expand description
Restores an execution context when droped.
Implementations§
Source§impl ExecutionContextRestorer
impl ExecutionContextRestorer
Sourcepub fn ctx(&self) -> ExecutionContext
pub fn ctx(&self) -> ExecutionContext
Returns the context that this object will restore.
Trait Implementations§
Source§impl Debug for ExecutionContextRestorer
impl Debug for ExecutionContextRestorer
Auto Trait Implementations§
impl Freeze for ExecutionContextRestorer
impl RefUnwindSafe for ExecutionContextRestorer
impl Send for ExecutionContextRestorer
impl Sync for ExecutionContextRestorer
impl Unpin for ExecutionContextRestorer
impl UnwindSafe for ExecutionContextRestorer
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