Skip to main content

Subscription

Type Alias Subscription 

Source
pub type Subscription = Arc<dyn Drop + 'static>;
Expand description

Subscription handle returned by Observer::subscribe methods, which will unsubscribe corresponding callback when dropped.

If you need to send the Subscription handle to another thread, you may wish to enable the sync feature such that Subscription implements Send+Sync.

Aliased Typeยง

pub struct Subscription { /* private fields */ }