[][src]Struct newt::callbacks::SuspendCallback

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

A callback called when Ctrl-Z is pressed.

Implementations

impl<FN, T> SuspendCallback<FN, T> where
    FN: FnMut(Option<&T>), 
[src]

pub fn new(function: FN, data: Option<T>) -> Box<SuspendCallback<FN, T>>[src]

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

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

Trait Implementations

impl<FN, T> Drop for SuspendCallback<FN, T> where
    FN: FnMut(Option<&T>), 
[src]

Auto Trait Implementations

impl<FN, T> RefUnwindSafe for SuspendCallback<FN, T> where
    FN: RefUnwindSafe,
    T: RefUnwindSafe

impl<FN, T> Send for SuspendCallback<FN, T> where
    FN: Send,
    T: Send

impl<FN, T> Sync for SuspendCallback<FN, T> where
    FN: Sync,
    T: Sync

impl<FN, T> Unpin for SuspendCallback<FN, T> where
    FN: Unpin,
    T: Unpin

impl<FN, T> UnwindSafe for SuspendCallback<FN, T> where
    FN: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.