pub struct Interest(/* private fields */);Expand description
What an Observer asks for: a set of flags. | and |= unite two
sets, union does in a const, and
contains tests one.
use dataflow_rs::observe::Interest;
const TIMED_TASKS: Interest = Interest::TASKS.union(Interest::TIMINGS);
assert_eq!(TIMED_TASKS, Interest::TASKS | Interest::TIMINGS);Every observer receives RunStarted and
RunFinished.
Implementations§
Trait Implementations§
Source§impl BitOrAssign for Interest
impl BitOrAssign for Interest
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds other’s flags.
impl Copy for Interest
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.