pub trait Publish: Send + Sync {
// Required method
fn publish(&self, scope: &Scope, change: Change);
}Expand description
Where a change goes: the bus open pages listen to.
Required Methods§
Sourcefn publish(&self, scope: &Scope, change: Change)
fn publish(&self, scope: &Scope, change: Change)
Tells every page subscribed to scope — or to any scope, for
Scope::Every — about change. No one listening is not an error.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".