pub trait Subject {
// Required method
fn notify(&self);
}Expand description
An object which notifies some group of
Observers. When it is notified,
all the listeners are notified.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".