pub struct DefaultGuard(/* private fields */);Expand description
A guard that resets the current default dispatcher to the prior default dispatcher when dropped.
Trait Implementations§
Source§impl Debug for DefaultGuard
impl Debug for DefaultGuard
Source§impl Drop for DefaultGuard
Available on crate feature std only.
impl Drop for DefaultGuard
Available on crate feature
std only.Auto Trait Implementations§
impl !RefUnwindSafe for DefaultGuard
impl !UnwindSafe for DefaultGuard
impl Forget for DefaultGuard
impl Freeze for DefaultGuardwhere
&'static (dyn Subscriber + Sync + Send): Freeze,
*const ArcInner<dyn Subscriber + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Subscriber + Sync + Send>>: Freeze,
impl Move for DefaultGuard
impl Send for DefaultGuard
impl Sync for DefaultGuard
impl Unpin for DefaultGuard
impl UnsafeUnpin for DefaultGuardwhere
&'static (dyn Subscriber + Sync + Send): UnsafeUnpin,
*const ArcInner<dyn Subscriber + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Subscriber + Sync + Send>>: UnsafeUnpin,
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