1
2
3
4
5
6
7
/// Make sure an Observer
pub trait Observer: Sized {
    /// Stop the observer to no longer receive updates
    fn stop(self) {
        // By taking ownership of the observer, we ensure it get dropped
    }
}