Trait Quit

Source
pub trait Quit: Send {
    // Required methods
    fn quit_ok(&mut self) -> impl Future<Output = Never> + Send;
    fn quit_err<E>(&mut self, reason: E) -> impl Future<Output = Never> + Send
       where E: StdError + Send + Sync + 'static;

    // Provided method
    fn quit<E>(
        &mut self,
        result: Result<(), E>,
    ) -> impl Future<Output = Never> + Send
       where E: StdError + Send + Sync + 'static { ... }
}

Required Methods§

Source

fn quit_ok(&mut self) -> impl Future<Output = Never> + Send

Source

fn quit_err<E>(&mut self, reason: E) -> impl Future<Output = Never> + Send
where E: StdError + Send + Sync + 'static,

Provided Methods§

Source

fn quit<E>( &mut self, result: Result<(), E>, ) -> impl Future<Output = Never> + Send
where E: StdError + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§