Skip to main content

LifecycleLocalServerHandler

Trait LifecycleLocalServerHandler 

Source
pub trait LifecycleLocalServerHandler<___T: Transport = Channel> {
    // Required method
    fn stop(&mut self) -> impl Future<Output = ()>;
}
Expand description

A server handler for the Lifecycle protocol.

See Lifecycle for more details.

Required Methods§

Source

fn stop(&mut self) -> impl Future<Output = ()>

The process must clean up its state in preparation for termination, and must close the channel hosting the Lifecycle protocol when it is ready to be terminated. The process should exit after it completes its cleanup. At the discretion of the system the process may be terminated before it closes the Lifecycle channel.

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<___H, ___T> LifecycleLocalServerHandler<___T> for Local<___H>
where ___H: LifecycleServerHandler<___T>, ___T: Transport,

Source§

async fn stop(&mut self)

Implementors§