ModifiedStatus

Trait ModifiedStatus 

Source
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§

Source

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].

Implementations on Foreign Types§

Source§

impl ModifiedStatus for bool

Implementors§