Enum ObjectValueV41

Source
pub enum ObjectValueV41 {
    None,
    Some,
    Object {
        kind: ObjectKindV41,
        attributes: ObjectAttributesV32,
    },
    Keys(EncryptionKeysV40),
    Attribute {
        size: u64,
        has_overwrite_extents: bool,
    },
    Extent(ExtentValueV38),
    Child(ChildValueV32),
    Trim,
    BytesAndNodes {
        bytes: i64,
        nodes: i64,
    },
    ExtendedAttribute(ExtendedAttributeValueV32),
    VerifiedAttribute {
        size: u64,
        fsverity_metadata: FsverityMetadataV33,
    },
}

Variants§

§

None

Some keys have no value (this often indicates a tombstone of some sort). Records with this value are always filtered when a major compaction is performed, so the meaning must be the same as if the item was not present.

§

Some

Some keys have no value but need to differentiate between a present value and no value (None) i.e. their value is really a boolean: None => false, Some => true.

§

Object

The value for an ObjectKey::Object record.

Fields

§

Keys(EncryptionKeysV40)

Encryption keys for an object.

§

Attribute

An attribute associated with a file object. |size| is the size of the attribute in bytes.

Fields

§size: u64
§has_overwrite_extents: bool
§

Extent(ExtentValueV38)

An extent associated with an object.

§

Child(ChildValueV32)

A child of an object.

§

Trim

Graveyard entries can contain these entries which will cause a file that has extents beyond EOF to be trimmed at mount time. This is used in cases where shrinking a file can exceed the bounds of a single transaction.

§

BytesAndNodes

Added to support tracking Project ID usage and limits.

Fields

§bytes: i64
§nodes: i64
§

ExtendedAttribute(ExtendedAttributeValueV32)

A value for an extended attribute. Either inline or a redirection to an attribute with extents.

§

VerifiedAttribute

An attribute associated with a verified file object. |size| is the size of the attribute in bytes. |fsverity_metadata| holds the descriptor for the fsverity-enabled file.

Fields

§size: u64
§fsverity_metadata: FsverityMetadataV33

Implementations§

Source§

impl ObjectValueV41

Source

pub fn file( refs: u64, allocated_size: u64, creation_time: Timestamp, modification_time: Timestamp, access_time: Timestamp, change_time: Timestamp, project_id: u64, posix_attributes: Option<PosixAttributes>, ) -> ObjectValue

Creates an ObjectValue for a file object.

Source

pub fn keys(keys: EncryptionKeys) -> ObjectValue

Source

pub fn attribute(size: u64, has_overwrite_extents: bool) -> ObjectValue

Creates an ObjectValue for an object attribute.

Source

pub fn verified_attribute( size: u64, fsverity_metadata: FsverityMetadata, ) -> ObjectValue

Creates an ObjectValue for an object attribute of a verified file.

Source

pub fn extent(device_offset: u64, key_id: u64) -> ObjectValue

Creates an ObjectValue for an insertion/replacement of an object extent.

Source

pub fn extent_with_checksum( device_offset: u64, checksum: Checksums, key_id: u64, ) -> ObjectValue

Creates an ObjectValue for an insertion/replacement of an object extent.

Source

pub fn deleted_extent() -> ObjectValue

Creates an ObjectValue for a deletion of an object extent.

Source

pub fn child(object_id: u64, object_descriptor: ObjectDescriptor) -> ObjectValue

Creates an ObjectValue for an object child.

Creates an ObjectValue for an object symlink.

Source

pub fn inline_extended_attribute(value: impl Into<Vec<u8>>) -> ObjectValue

Source

pub fn extended_attribute(attribute_id: u64) -> ObjectValue

Trait Implementations§

Source§

impl Clone for ObjectValueV41

Source§

fn clone(&self) -> ObjectValueV41

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ObjectValueV41

Source§

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

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

impl<'de> Deserialize<'de> for ObjectValueV41

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 From<ObjectValueV40> for ObjectValueV41

Source§

fn from(value: ObjectValueV40) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ObjectValueV41

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ObjectValueV41

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 TypeFingerprint for ObjectValueV41

Source§

impl Versioned for ObjectValueV41

Source§

fn max_serialized_size() -> u64

Source§

fn deserialize_from<R>(reader: &mut R, _version: Version) -> Result<Self>
where R: Read + ?Sized, for<'de> Self: Deserialize<'de>,

Source§

fn serialize_into<W>(&self, writer: &mut W) -> Result<()>
where W: Write, Self: Serialize,

Source§

impl StructuralPartialEq for ObjectValueV41

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, dst: *mut u8)

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

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

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

Source§

impl<V> LayerValue for V
where V: Clone + Send + Sync + Versioned + VersionedLatest + Debug + Unpin + 'static,