[][src]Struct irq::Handler

pub struct Handler<'a> { /* fields omitted */ }

Wraps a closure used as an interrupt handler.

A Handler needs to be passed to Scope::register to do anything.

Methods

impl<'a> Handler<'a>[src]

pub fn new<F>(f: &'a mut F) -> Self where
    F: FnMut() + Send + 'a, 
[src]

Creates a new interrupt handler wrapper given a closure.

pub fn invoke(&mut self)[src]

Invokes the interrupt handler closure.

Trait Implementations

impl<'a> Debug for Handler<'a>[src]

Auto Trait Implementations

impl<'a> !Send for Handler<'a>

impl<'a> !Sync for Handler<'a>

impl<'a> Unpin for Handler<'a>

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.