pub struct Lifecycle;Expand description
The type corresponding to the Lifecycle protocol. A component can implement the Lifecycle protocol to be notified of lifecycle events. It can also store some state in the framework, to be redelivered to the component the next time it is started (a practice called “escrowing”).
The ELF Runner uses this protocol to communicate lifecycle changes to the component, for more details on how it uses this protocol see: https://fuchsia.dev/fuchsia-src/concepts/components/v2/elf_runner#lifecycle
Trait Implementations§
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleClientHandler<___T> + Send,
___T: Transport,
for<'de> LifecycleOnEscrowRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleClientHandler<___T> + Send,
___T: Transport,
for<'de> LifecycleOnEscrowRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleLocalClientHandler<___T>,
___T: Transport,
for<'de> LifecycleOnEscrowRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleLocalClientHandler<___T>,
___T: Transport,
for<'de> LifecycleOnEscrowRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleLocalServerHandler<___T>,
___T: Transport,
impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleLocalServerHandler<___T>,
___T: Transport,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleServerHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Lifecyclewhere
___H: LifecycleServerHandler<___T> + Send,
___T: Transport,
impl StructuralPartialEq for Lifecycle
Auto Trait Implementations§
impl Freeze for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnsafeUnpin for Lifecycle
impl UnwindSafe for Lifecycle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]