pub struct MetadataRootState {
pub namespace_id: NamespaceId,
pub manifest_id: ManifestId,
pub manifest_object_id: ManifestObjectId,
pub manifest_head_seq: ChangeSeq,
pub manifest_payload_checksum: String,
pub updated_at_ms: u64,
}Expand description
Cold pointer to the best known materialized metadata root.
Manifest publication compare-and-swaps this object, never the WAL head,
so head watchers see only commits. Updates are monotonic in
manifest_head_seq; a same-seq replacement may reference a different
manifest (pure compaction), and a lower-seq replacement no-ops. This
object never defines live visibility.
Fields§
§namespace_id: NamespaceIdNamespace whose materialized file set this root selects.
manifest_id: ManifestIdMonotonic logical position of the selected manifest.
manifest_object_id: ManifestObjectIdImmutable candidate chosen at manifest_id.
manifest_head_seq: ChangeSeqGreatest namespace sequence represented by the selected manifest.
manifest_payload_checksum: StringMust equal payload_checksum in the referenced manifest envelope.
updated_at_ms: u64Unix-millisecond wall-clock stamp for observability and GC grace policy, not ordering.
Trait Implementations§
Source§impl Clone for MetadataRootState
impl Clone for MetadataRootState
Source§fn clone(&self) -> MetadataRootState
fn clone(&self) -> MetadataRootState
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 MetadataRootState
impl Debug for MetadataRootState
Source§impl<'de> Deserialize<'de> for MetadataRootState
impl<'de> Deserialize<'de> for MetadataRootState
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 MetadataRootState
Source§impl PartialEq for MetadataRootState
impl PartialEq for MetadataRootState
Source§impl Serialize for MetadataRootState
impl Serialize for MetadataRootState
impl StructuralPartialEq for MetadataRootState
Auto Trait Implementations§
impl Freeze for MetadataRootState
impl RefUnwindSafe for MetadataRootState
impl Send for MetadataRootState
impl Sync for MetadataRootState
impl Unpin for MetadataRootState
impl UnsafeUnpin for MetadataRootState
impl UnwindSafe for MetadataRootState
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