Struct DefaultGuard

struct DefaultGuard(_)

A guard that resets the current default dispatcher to the prior default dispatcher when dropped.

Implementations

impl Debug for DefaultGuard

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Drop for DefaultGuard

fn drop(self: &mut Self)

impl Freeze for DefaultGuard

impl RefUnwindSafe for DefaultGuard

impl Send for DefaultGuard

impl Sync for DefaultGuard

impl Unpin for DefaultGuard

impl UnsafeUnpin for DefaultGuard

impl UnwindSafe for DefaultGuard

impl<T> Any for DefaultGuard

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DefaultGuard

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DefaultGuard

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for DefaultGuard

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for DefaultGuard

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DefaultGuard

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DefaultGuard

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>