Trait ChangeListener
pub trait ChangeListener: Send + Sync {
// Required method
fn changed(&self, change: Change);
}Available on crate feature
std only.Expand description
Woken, without a value, after a source it subscribed to changed.
The source calls it synchronously from whatever changed it, possibly under the source’s own locks: only wake, never block or call into the source.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
§impl ChangeListener for Notify
Wakes the tasks waiting at this moment, as [Notify::notify_waiters].
impl ChangeListener for Notify
Wakes the tasks waiting at this moment, as [Notify::notify_waiters].