Skip to main content

NamespaceManifestPayload

Struct NamespaceManifestPayload 

Source
pub struct NamespaceManifestPayload {
Show 20 fields pub namespace_id: NamespaceId, pub content_store_id: ContentStoreId, pub created_at_ms: u64, pub created_by: ActorId, pub access: NamespaceAccess, pub fork_basis: Option<ForkBasis>, pub status: NamespaceStatus, pub writer: Option<WriterBlock>, pub last_folded_wal_no: WalNo, pub retention_floor_wal_no: WalNo, pub manifest_no: ManifestNo, pub compactor_epoch: u64, pub head_seq: ChangeSeq, pub head_commit_id: CommitId, pub base_seq: ChangeSeq, pub writer_epoch: WriterEpoch, pub next_inode_id: InodeId, pub next_run_no: RunNo, pub retention_floor_seq: ChangeSeq, pub runs: Vec<MetadataRunRef>,
}
Expand description

Carries one complete namespace file-set description inside a manifest envelope.

See manifest publication.

Fields§

§namespace_id: NamespaceId

Namespace whose materialized state this manifest describes.

§content_store_id: ContentStoreId

Content domain shared by this namespace and its forks.

§created_at_ms: u64

Namespace creation stamp in Unix milliseconds.

§created_by: ActorId

Actor that created the namespace, as supplied by the application.

§access: NamespaceAccess

Access mode, fixed at creation.

§fork_basis: Option<ForkBasis>

Permanent fork provenance and source checkpoint identity.

§status: NamespaceStatus

Terminal deletion and retirement state.

§writer: Option<WriterBlock>

Writer that acquired the current epoch.

§last_folded_wal_no: WalNo

Highest WAL number represented by the runs.

§retention_floor_wal_no: WalNo

WAL number covered by the manifest whose head established the floor.

§manifest_no: ManifestNo

Positive publication number matching the manifest object key.

§compactor_epoch: u64

Stops a stale streaming compactor at its next check when a newer runtime claims it. Streaming compaction rebuilds a whole family group and publishes once at the end. Grep publishes each bounded step, so a lost race costs only one step.

§head_seq: ChangeSeq

Materialized head sequence, or the final namespace sequence on deletion.

§head_commit_id: CommitId

Commit identity used when no newer data segment exists.

§base_seq: ChangeSeq

Oldest run sequence still represented by runs.

§writer_epoch: WriterEpoch

Current writer fencing epoch.

§next_inode_id: InodeId

First inode identity available after replaying the manifest snapshot.

§next_run_no: RunNo

Run number the next producer allocates. Every run’s run_no is below it.

§retention_floor_seq: ChangeSeq

Earliest sequence for which retained history remains readable.

§runs: Vec<MetadataRunRef>

Complete set of metadata runs required to reconstruct the snapshot.

Implementations§

Source§

impl NamespaceManifestPayload

Source

pub fn initial( namespace_id: NamespaceId, content_store_id: ContentStoreId, created_at_ms: u64, created_by: ActorId, access: NamespaceAccess, ) -> Self

Constructs manifest 1 with the root inode reserved.

Source

pub fn ensure_successor_identity( &self, successor: &NamespaceManifestPayload, ) -> Result<(), ManifestIdentityDrift>

Rejects changes to permanent identity and terminal lifecycle state.

Trait Implementations§

Source§

impl Clone for NamespaceManifestPayload

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NamespaceManifestPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NamespaceManifestPayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for NamespaceManifestPayload

Source§

impl PartialEq for NamespaceManifestPayload

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for NamespaceManifestPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for NamespaceManifestPayload

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.