#[repr(transparent)]pub struct AttributeId(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl AttributeId
impl AttributeId
Sourcepub const BLOB_METADATA: Self
pub const BLOB_METADATA: Self
Contains a serialized and versioned BlobMetadata struct. Use [BlobMetadata::read_from]
and [BlobMetadata::write_to] to access this attribute.
Sourcepub const BLOB_MERKLE: Self
pub const BLOB_MERKLE: Self
Contains a serialized BlobMetadataUnversioned struct. This attribute may still exist on
blobs but should no longer be written. Use AttributeId::BLOB_METADATA instead.
Sourcepub const FSVERITY_MERKLE: Self
pub const FSVERITY_MERKLE: Self
For fsverity files in Fxfs, we store the merkle tree of the verified file at a well-known attribute.
Sourcepub const XATTR_RANGE_START: Self
pub const XATTR_RANGE_START: Self
The range of fxfs attribute IDs which are reserved for extended attribute values. Whenever a new attribute is needed, the first unused ID will be chosen from this range. It’s technically safe to change these values, but it has potential consequences - they are only used during ID selection, so any existing extended attributes keep their IDs, which means any past or present selected range here could potentially have used attributes unless they are explicitly migrated, which isn’t currently done.
pub const XATTR_RANGE_END: Self
Sourcepub const SORTED_START: Self
pub const SORTED_START: Self
A semantic alias for the 0 attribute ID, indicating that it is being used as a starting
point to iterate over all attributes rather than specifically looking up the primary data
attribute AttributeId::DATA.
pub const fn raw(self) -> u64
Trait Implementations§
Source§impl Clone for AttributeId
impl Clone for AttributeId
Source§fn clone(&self) -> AttributeId
fn clone(&self) -> AttributeId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttributeId
impl Debug for AttributeId
Source§impl<'de> Deserialize<'de> for AttributeId
impl<'de> Deserialize<'de> for AttributeId
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>,
Source§impl Display for AttributeId
impl Display for AttributeId
Source§impl Hash for AttributeId
impl Hash for AttributeId
Source§impl Ord for AttributeId
impl Ord for AttributeId
Source§fn cmp(&self, other: &AttributeId) -> Ordering
fn cmp(&self, other: &AttributeId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AttributeId
impl PartialEq for AttributeId
Source§fn eq(&self, other: &AttributeId) -> bool
fn eq(&self, other: &AttributeId) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AttributeId
impl PartialOrd for AttributeId
Source§impl Serialize for AttributeId
impl Serialize for AttributeId
Source§impl SerializeKey for AttributeId
impl SerializeKey for AttributeId
Source§fn serialize_key_to<B: Buffer>(&self, serializer: &mut KeySerializer<'_, B>)
fn serialize_key_to<B: Buffer>(&self, serializer: &mut KeySerializer<'_, B>)
Source§fn deserialize_key_from(deserializer: &mut KeyDeserializer<'_>) -> Result<Self>
fn deserialize_key_from(deserializer: &mut KeyDeserializer<'_>) -> Result<Self>
Source§impl TypeFingerprint for AttributeId
impl TypeFingerprint for AttributeId
fn fingerprint() -> String
impl Copy for AttributeId
impl Eq for AttributeId
impl StructuralPartialEq for AttributeId
Auto Trait Implementations§
impl Freeze for AttributeId
impl RefUnwindSafe for AttributeId
impl Send for AttributeId
impl Sync for AttributeId
impl Unpin for AttributeId
impl UnsafeUnpin for AttributeId
impl UnwindSafe for AttributeId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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