Skip to main content

MetadataRow

Enum MetadataRow 

Source
pub enum MetadataRow {
    Inode(InodeRecord),
    DirentryBind(DirentryBindRecord),
    DirentryUnbind(DirentryUnbindRecord),
    FileRevision(RevisionRecord),
    Tombstone(SubtreeTombstoneRecord),
    ActiveDeletion(ActiveDeletionRecord),
    CommitReceipt(CommitReceiptRecord),
    ContentPublication(ContentPublicationRecord),
    AttributesRevision(AttributesRevisionRecord),
    AccessRevision(AccessRevisionRecord),
}
Expand description

One materialized metadata row stored in a segment.

See metadata rows and row keys.

Variants§

§

Inode(InodeRecord)

Establishes one inode’s immutable identity and kind.

§

DirentryBind(DirentryBindRecord)

Records one generation of a directory name binding.

§

DirentryUnbind(DirentryUnbindRecord)

Retires one exact directory-binding generation.

§

FileRevision(RevisionRecord)

Publishes one immutable content revision for a file inode.

§

Tombstone(SubtreeTombstoneRecord)

Changes whether one root inode has an active subtree tombstone.

§

ActiveDeletion(ActiveDeletionRecord)

Derived row used to list currently recoverable deletions.

Materialization writes listed for each tombstone set and removed for each revoke. This lets trash listing use an ordered range scan instead of replaying all historical deletion events.

§

CommitReceipt(CommitReceiptRecord)

Preserves the evidence needed to answer a retried logical commit.

§

ContentPublication(ContentPublicationRecord)

Records a published content identity independently of its revisions.

§

AttributesRevision(AttributesRevisionRecord)

Publishes one inode’s complete attribute map at one revision.

The row is whole state, not a change: a reader takes the newest row for an inode and needs nothing older. An inode with no row anywhere is at revision 0 with an empty map, so nothing is written until a caller writes an attribute.

§

AccessRevision(AccessRevisionRecord)

Publishes one inode’s complete access state at one revision.

Whole state, like an attribute revision: a reader takes the newest row for an inode. An inode with no row anywhere is at revision 0 with no boundary and no grants.

Implementations§

Source§

impl MetadataRow

Source

pub fn row_key(&self) -> String

Builds this row’s canonical durable key in its primary row family.

See metadata rows and row keys.

Source

pub fn row_key_for_family(&self, family: MetadataRowFamily) -> String

Builds this row’s durable key using the selected primary or secondary ordering.

See metadata rows and row keys.

Source

pub fn filter_key_for_family(&self, family: MetadataRowFamily) -> String

Returns the Bloom filter key for this row in family.

Trait Implementations§

Source§

impl Clone for MetadataRow

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 MetadataRow

Source§

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

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

impl<'de> Deserialize<'de> for MetadataRow

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 MetadataRow

Source§

impl PartialEq for MetadataRow

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 MetadataRow

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 MetadataRow

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.