pub trait LifecycleClientHandler<___T: Transport = Channel> {
// Required method
fn on_escrow(
&mut self,
request: Request<OnEscrow, ___T>,
) -> impl Future<Output = ()> + Send;
}Expand description
A client handler for the Lifecycle protocol.
See Lifecycle for more details.
Required Methods§
Sourcefn on_escrow(
&mut self,
request: Request<OnEscrow, ___T>,
) -> impl Future<Output = ()> + Send
fn on_escrow( &mut self, request: Request<OnEscrow, ___T>, ) -> impl Future<Output = ()> + Send
Escrow state shortly before the component exits.
When the ELF runner receives this event, it will arrange with the
framework to wait until the current execution of the component has
finished, then start the component again when the ZX_CHANNEL_READABLE
signal is observed on outgoing_dir.
Repeated calls will replace the old escrowed value. This is discouraged.
Handles escrowed via OnEscrow are always delivered to the next
execution of the component.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".