pub struct LifecycleContext { /* private fields */ }Expand description
Identity available to a lifecycle participant without exposing a runtime.
Implementations§
Source§impl LifecycleContext
impl LifecycleContext
Sourcepub const fn new(application: ApplicationId, process: ProcessId) -> Self
pub const fn new(application: ApplicationId, process: ProcessId) -> Self
Creates a context for one application’s process lifecycle.
Sourcepub const fn application(self) -> ApplicationId
pub const fn application(self) -> ApplicationId
Returns the application whose lifecycle is being coordinated.
Trait Implementations§
Source§impl Clone for LifecycleContext
impl Clone for LifecycleContext
impl Copy for LifecycleContext
Source§impl Debug for LifecycleContext
impl Debug for LifecycleContext
impl Eq for LifecycleContext
Source§impl PartialEq for LifecycleContext
impl PartialEq for LifecycleContext
impl StructuralPartialEq for LifecycleContext
Auto Trait Implementations§
impl Freeze for LifecycleContext
impl RefUnwindSafe for LifecycleContext
impl Send for LifecycleContext
impl Sync for LifecycleContext
impl Unpin for LifecycleContext
impl UnsafeUnpin for LifecycleContext
impl UnwindSafe for LifecycleContext
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