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§
Sourcefn stop(&mut self) -> impl Future<Output = ()>
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".