pub enum MemorySource {
Compaction {
source_range: MessageRange,
},
}Expand description
Typed origin of an indexed memory entry.
Memory provenance is a typed owner, not an absent/stringly fact: every entry records where its content came from so retrieval can expose the real source rather than a proxy (e.g. the turn at which compaction ran).
Variants§
Compaction
Content discarded during compaction, identified by the range of source session-history message offsets it was derived from.
Fields
§
source_range: MessageRangeRange of source message offsets this entry was derived from.
Implementations§
Source§impl MemorySource
impl MemorySource
Sourcepub fn source_range(&self) -> Option<MessageRange>
pub fn source_range(&self) -> Option<MessageRange>
The source message range, if this origin carries one.
Trait Implementations§
Source§impl Clone for MemorySource
impl Clone for MemorySource
Source§fn clone(&self) -> MemorySource
fn clone(&self) -> MemorySource
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 MemorySource
impl Debug for MemorySource
Source§impl<'de> Deserialize<'de> for MemorySource
impl<'de> Deserialize<'de> for MemorySource
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 MemorySource
Source§impl PartialEq for MemorySource
impl PartialEq for MemorySource
Source§fn eq(&self, other: &MemorySource) -> bool
fn eq(&self, other: &MemorySource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemorySource
impl Serialize for MemorySource
impl StructuralPartialEq for MemorySource
Auto Trait Implementations§
impl Freeze for MemorySource
impl RefUnwindSafe for MemorySource
impl Send for MemorySource
impl Sync for MemorySource
impl Unpin for MemorySource
impl UnsafeUnpin for MemorySource
impl UnwindSafe for MemorySource
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§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.