Enum Always

pub enum Always

Always run on scope exit.

“Always” run: on regular exit from a scope or on unwinding from a panic. Can not run on abort, process exit, and other catastrophic events where destructors don’t run.

Trait Implementations

impl Debug for Always

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

impl Strategy for Always

fn should_run() -> bool

Auto Trait Implementations

impl Freeze for Always

impl RefUnwindSafe for Always

impl Send for Always

impl Sync for Always

impl Unpin for Always

impl UnsafeUnpin for Always

impl UnwindSafe for Always

Blanket Implementations

impl<T> Any for Always where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Always where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Always where T: ?Sized,

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

impl<T> From<T> for Always

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Always where U: From<T>,

fn into(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<U> for Always where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Always where U: TryFrom<T>,

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