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§
fn quit_ok(&mut self) -> impl Future<Output = Never> + Send
fn quit_err<E>(&mut self, reason: E) -> impl Future<Output = Never> + Send
Provided Methods§
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.