Trait zng::handler::AppWeakHandle

source ·
pub trait AppWeakHandle: Send {
    // Required methods
    fn clone_boxed(&self) -> Box<dyn AppWeakHandle>;
    fn unsubscribe(&self);
}
Expand description

Represents a weak handle to an AppHandler subscription.

Required Methods§

source

fn clone_boxed(&self) -> Box<dyn AppWeakHandle>

Dynamic clone.

source

fn unsubscribe(&self)

Unsubscribes the AppHandler.

This stops the handler from being called again and causes it to be dropped in a future app update.

Implementations on Foreign Types§

source§

impl<D> AppWeakHandle for WeakHandle<D>
where D: Send + Sync + 'static,

Implementors§