Skip to main content

Observer

Trait Observer 

Source
pub trait Observer {
    // Required method
    fn notify(&self);
}
Expand description

An object notified by a Subject.

Required Methods§

Source

fn notify(&self)

Executes some arbitrary block in the implementing object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§