Skip to main content

PostInstallCheck

Trait PostInstallCheck 

Source
pub trait PostInstallCheck: Debug {
    // Required method
    fn check(
        &self,
        spec: &ServiceSpec,
        snapshot: &LifecycleSnapshot,
        remaining: Duration,
    ) -> Result<(), PostInstallCheckError>;
}
Expand description

Caller-controlled post-install check. Implementations must honor remaining.

Required Methods§

Source

fn check( &self, spec: &ServiceSpec, snapshot: &LifecycleSnapshot, remaining: Duration, ) -> Result<(), PostInstallCheckError>

Check the installed generation within the supplied remaining-time budget.

Synchronous user code cannot be forcibly cancelled safely. This method must return within remaining and must not include secrets in its error.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§