Skip to main content

StateObservation

Trait StateObservation 

Source
pub trait StateObservation:
    Send
    + Sync
    + 'static {
    // Required method
    fn cancel(&self);
}
Expand description

Handle returned by ElementRuntime::observe_state. Calling Self::cancel removes the listener.

Required Methods§

Source

fn cancel(&self)

Cancel the observation.

Implementors§