pub struct SuspendCallback<FN, T> where
    FN: FnMut(Option<&T>), 
{ /* private fields */ }
Expand description

A callback called when Ctrl-Z is pressed.

Implementations

Create a new SuspendCallback to be called when a suspend (Ctrl-Z) event occurs.

  • data - The optional user data to pass to the function.
  • function - The function or closure to be called when a suspend event occurs.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.