scuffle_bootstrap::signals

Trait SignalSvcConfig

Source
pub trait SignalSvcConfig: Global {
    // Provided methods
    fn signals(&self) -> Vec<SignalKind> { ... }
    fn timeout(&self) -> Option<Duration> { ... }
    fn on_shutdown(self: &Arc<Self>) -> impl Future<Output = Result<()>> + Send { ... }
    fn on_force_shutdown(
        &self,
        signal: Option<SignalKind>,
    ) -> impl Future<Output = Result<()>> + Send { ... }
}

Provided Methods§

Source

fn signals(&self) -> Vec<SignalKind>

Source

fn timeout(&self) -> Option<Duration>

Source

fn on_shutdown(self: &Arc<Self>) -> impl Future<Output = Result<()>> + Send

Source

fn on_force_shutdown( &self, signal: Option<SignalKind>, ) -> impl Future<Output = Result<()>> + Send

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§