pub struct MemoryForgotten {
pub id: i64,
pub restored: Vec<i64>,
}Expand description
What one crate::Store::forget_memory removed.
Fields§
§id: i64The record that was deleted.
restored: Vec<i64>Records that were superseded by the deleted one and are therefore live again.
Forgetting a successor destroys the only recorded reason its predecessor was dropped from live listing. Leaving the predecessor superseded would make it invisible on the strength of a record that no longer exists — supersession by ghost, which is precisely the inferred-not-recorded failure the explicit pointer exists to prevent. So the pointer is cleared and the predecessor returns, reported here rather than silently.
Trait Implementations§
Source§impl Clone for MemoryForgotten
impl Clone for MemoryForgotten
Source§fn clone(&self) -> MemoryForgotten
fn clone(&self) -> MemoryForgotten
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryForgotten
impl Debug for MemoryForgotten
Source§impl<'de> Deserialize<'de> for MemoryForgotten
impl<'de> Deserialize<'de> for MemoryForgotten
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryForgotten
Source§impl PartialEq for MemoryForgotten
impl PartialEq for MemoryForgotten
Source§impl Serialize for MemoryForgotten
impl Serialize for MemoryForgotten
impl StructuralPartialEq for MemoryForgotten
Auto Trait Implementations§
impl Freeze for MemoryForgotten
impl RefUnwindSafe for MemoryForgotten
impl Send for MemoryForgotten
impl Sync for MemoryForgotten
impl Unpin for MemoryForgotten
impl UnsafeUnpin for MemoryForgotten
impl UnwindSafe for MemoryForgotten
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.