Trait drone_cortexm::thr::ExecOutput[][src]

pub trait ExecOutput: Send {
    type Terminate;
    pub 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[src]

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

Loading content...

Required methods

pub fn terminate(self) -> Self::Terminate[src]

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> ExecOutput for Result<!, E> where
    E: Send + Display
[src]

type Terminate = !

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

type Terminate = ()

Loading content...

Implementors

impl ExecOutput for ![src]

type Terminate = !

impl ExecOutput for ()[src]

type Terminate = ()

Loading content...