Skip to main content

Daemon

Trait Daemon 

Source
pub trait Daemon: Send + Sync {
    // Provided method
    fn run(
        &self,
        app: &App,
        shutdown: CancellationToken,
    ) -> impl Future<Output = Result<(), StdError>> + Send { ... }
}

Provided Methods§

Source

fn run( &self, app: &App, shutdown: CancellationToken, ) -> impl Future<Output = Result<(), StdError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§