Skip to main content

Startup

Trait Startup 

Source
pub trait Startup: Sized {
    const INTEREST: Interest = dope_core::dope_sys::engine::register::Interest::Readable;

    // Required method
    fn installed(&self) -> Result<(), InstallError>;

    // Provided methods
    fn observed(&self, _request: Requested<Self>) { ... }
    fn failed(&self) { ... }
}
Expand description

Lifecycle behavior selected by an executor’s shutdown source.

Provided Associated Constants§

Source

const INTEREST: Interest = dope_core::dope_sys::engine::register::Interest::Readable

Required Methods§

Source

fn installed(&self) -> Result<(), InstallError>

Publishes installation readiness or preserves its exact notification failure.

Provided Methods§

Source

fn observed(&self, _request: Requested<Self>)

Observes the registered shutdown source becoming ready.

Source

fn failed(&self)

Records installation failure before native cleanup.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Startup for ()

Implementors§

Source§

impl Startup for &Main

Source§

const INTEREST: Interest = dope_core::dope_sys::engine::register::Interest::Closed

Source§

impl Startup for &mut Signal<'_>

Source§

impl Startup for Shutdown<'_>

Source§

impl Startup for Source