[][src]Trait drone_cortex_m::thr::ExecOutput

pub trait ExecOutput: Sized + Send {
    type Terminate;
    fn terminate(self) -> Self::Terminate;
}

A trait for implementing arbitrary output types for futures passed to ThrExec::exec and ThrExec::add_exec.

Associated Types

type Terminate

The return type of ExecOutput::terminate. Should be either () or !.

Loading content...

Required methods

fn terminate(self) -> Self::Terminate

A result handler for an executor. The returned value will not be used, so the only useful types are () and !. The handler may choose to panic on an erroneous value.

Loading content...

Implementations on Foreign Types

impl<E: Send + Display> ExecOutput for Result<(), E>[src]

type Terminate = ()

impl<E: Send + Display> ExecOutput for Result<!, E>[src]

type Terminate = !

Loading content...

Implementors

impl ExecOutput for ![src]

type Terminate = !

impl ExecOutput for ()[src]

type Terminate = ()

Loading content...