zng_app::handler

Trait 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: Send + Sync + 'static> AppWeakHandle for WeakHandle<D>

Implementors§