Trait moa_signals::Observable

source ·
pub trait Observable<T> {
    // Required methods
    fn set_observer<F>(&self, f: F)
       where F: Fn(&T) + 'static;
    fn notify(&self);
}

Required Methods§

source

fn set_observer<F>(&self, f: F)
where F: Fn(&T) + 'static,

source

fn notify(&self)

Object Safety§

This trait is not object safe.

Implementors§