pub struct DatabaseChanges { /* private fields */ }Expand description
A live commit observation; coalesces changes and ends when the writer closes.
Implementations§
Source§impl DatabaseChanges
impl DatabaseChanges
Sourcepub fn take_changed(&mut self) -> Result<bool, DbError>
pub fn take_changed(&mut self) -> Result<bool, DbError>
Whether a relevant commit happened since the previous observation, without waiting; the first call reports the initial state.
Auto Trait Implementations§
impl Freeze for DatabaseChanges
impl RefUnwindSafe for DatabaseChanges
impl Send for DatabaseChanges
impl Sync for DatabaseChanges
impl Unpin for DatabaseChanges
impl UnsafeUnpin for DatabaseChanges
impl UnwindSafe for DatabaseChanges
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