Trait Host

Source
pub trait Host: Send + Send {
    // Required method
    fn exit(
        &mut self,
        status: Result<(), ()>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn exit( &mut self, status: Result<(), ()>, ) -> impl Future<Output = Result<()>> + Send

Exit the current instance and any linked instances.

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.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

async fn exit(&mut self, status: Result<(), ()>) -> Result<()>

Exit the current instance and any linked instances.

Implementors§