#[repr(u8)]pub enum ExtentInlineRefType {
TreeBlockRef = 176,
SharedBlockRef = 182,
ExtentDataRef = 178,
SharedDataRef = 184,
}
Expand description
The type of ExtentInlineRefHeader
or ExtentInlineRefFull
.
Variants§
TreeBlockRef = 176
The reference is indirect for a tree block.
offset
contains the object ID of the tree root that allocated the block.
The reference is shared for a tree block.
offset
contains the byte offset of the node one level above in the tree where this block
is located.
ExtentDataRef = 178
The reference is indirect for a data extent.
An ExtentDataRef
is located immediately after the type
field and overlaps the unused
offset
field.
The reference is shared for a data extent.
offset
contains the byte offset of the metadata that contains the extent data item that
describes this extent.
Immediately following offset
(and the end of ExtentInlineRefHeader
structure) is a
SharedDataRef
that contains the reference count.
Trait Implementations§
Source§impl Clone for ExtentInlineRefType
impl Clone for ExtentInlineRefType
Source§fn clone(&self) -> ExtentInlineRefType
fn clone(&self) -> ExtentInlineRefType
Returns a copy of the value. Read more
1.0.0 · 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 ExtentInlineRefType
impl Debug for ExtentInlineRefType
Source§impl From<ExtentInlineRefType> for u8
impl From<ExtentInlineRefType> for u8
Source§fn from(enum_value: ExtentInlineRefType) -> Self
fn from(enum_value: ExtentInlineRefType) -> Self
Converts to this type from the input type.
Source§impl Hash for ExtentInlineRefType
impl Hash for ExtentInlineRefType
Source§impl IntoBytes for ExtentInlineRefType
impl IntoBytes for ExtentInlineRefType
Source§impl KnownLayout for ExtentInlineRefTypewhere
Self: Sized,
impl KnownLayout for ExtentInlineRefTypewhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self
. Read moreSource§impl PartialEq for ExtentInlineRefType
impl PartialEq for ExtentInlineRefType
Source§impl TryFrom<u8> for ExtentInlineRefType
impl TryFrom<u8> for ExtentInlineRefType
Source§type Error = TryFromPrimitiveError<ExtentInlineRefType>
type Error = TryFromPrimitiveError<ExtentInlineRefType>
The type returned in the event of a conversion error.
Source§impl TryFromBytes for ExtentInlineRefType
impl TryFromBytes for ExtentInlineRefType
Source§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§impl TryFromPrimitive for ExtentInlineRefType
impl TryFromPrimitive for ExtentInlineRefType
const NAME: &'static str = "ExtentInlineRefType"
type Primitive = u8
type Error = TryFromPrimitiveError<ExtentInlineRefType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ExtentInlineRefType
impl Immutable for ExtentInlineRefType
impl StructuralPartialEq for ExtentInlineRefType
Auto Trait Implementations§
impl Freeze for ExtentInlineRefType
impl RefUnwindSafe for ExtentInlineRefType
impl Send for ExtentInlineRefType
impl Sync for ExtentInlineRefType
impl Unpin for ExtentInlineRefType
impl UnwindSafe for ExtentInlineRefType
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