Skip to main content

Stop

Trait Stop 

Source
pub trait Stop: Module {
    type Error;

    // Required method
    fn stop(&mut self, context: &LifecycleContext) -> Result<(), Self::Error>;
}
Expand description

Opts a module into teardown after draining.

Required Associated Types§

Source

type Error

An implementation-defined teardown error.

Required Methods§

Source

fn stop(&mut self, context: &LifecycleContext) -> Result<(), Self::Error>

Releases resources or execution mechanisms owned by this participant.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§