pub struct LifecycleClient { /* private fields */ }Expand description
ctx.lifecycle — subscribe to GCS-side mount events.
on_pause fires when the operator switches away from the drone hosting this
plugin’s UI; on_resume fires on switch-back. Both ride the plugin’s own
plugin.<id>.lifecycle.* namespace, mirroring _LifecycleClient.
Implementations§
Source§impl LifecycleClient
impl LifecycleClient
pub async fn on_pause(&self, handler: EventCallback) -> Result<(), ClientError>
pub async fn on_resume(&self, handler: EventCallback) -> Result<(), ClientError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleClient
impl !UnwindSafe for LifecycleClient
impl Freeze for LifecycleClient
impl Send for LifecycleClient
impl Sync for LifecycleClient
impl Unpin for LifecycleClient
impl UnsafeUnpin for LifecycleClient
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