pub trait ModifiedStatus {
// Required method
fn is_modified(&self) -> bool;
}Expand description
Return value of Publisher::modify.
Allows to capture data from within the locking scope.
If the modification does not capture and return any data
then bool could be used.
Required Methods§
Sourcefn is_modified(&self) -> bool
fn is_modified(&self) -> bool
Indicates if the shared value has been modified.
Returns true if the shared value has been modified
by a publisher and subscribers need to be notified.
Returns false if the shared value is unchanged.
See also: [Publisher::set_modified].