pub enum Changed {
Nothing,
Runs(BTreeSet<RunId>),
Everything,
}Expand description
What the hints since a reader’s last read say it must read again: nothing, these Runs, or everything. Session hints are not about the state database and change nothing here.
Variants§
Implementations§
Source§impl Changed
impl Changed
pub fn add(&mut self, change: &Change)
Sourcepub fn merge(&mut self, other: Self)
pub fn merge(&mut self, other: Self)
Keep what other says changed as well, as when a read that took it was not used.
Sourcepub fn or_written(&self, written: bool) -> Self
pub fn or_written(&self, written: bool) -> Self
What a read reads again: what the hints named or, when the database was written and
no hint named the change yet (a writer that could not reach the hub), everything.
Trait Implementations§
impl Eq for Changed
impl StructuralPartialEq for Changed
Auto Trait Implementations§
impl Freeze for Changed
impl RefUnwindSafe for Changed
impl Send for Changed
impl Sync for Changed
impl Unpin for Changed
impl UnsafeUnpin for Changed
impl UnwindSafe for Changed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.