pub enum ExtendedAttributeValue {
Bytes(Vec<u8>),
Buffer(Handle),
UnknownOrdinal_(u64),
}
Expand description
The value type for an extended attribute. If the value is less than 32768 bytes, then it is included inline. Values larger than this size are written into a vmo buffer.
Variants§
Trait Implementations§
Source§impl Debug for ExtendedAttributeValue
impl Debug for ExtendedAttributeValue
Source§impl Encodable for ExtendedAttributeValue
impl Encodable for ExtendedAttributeValue
Source§type Encoded = WireExtendedAttributeValue
type Encoded = WireExtendedAttributeValue
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<ExtendedAttributeValue>
impl EncodableOption for Box<ExtendedAttributeValue>
Source§type EncodedOption = WireOptionalExtendedAttributeValue
type EncodedOption = WireOptionalExtendedAttributeValue
The wire type for the optional value.
Source§impl<___E> Encode<___E> for ExtendedAttributeValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<___E> for ExtendedAttributeValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<ExtendedAttributeValue>where
___E: ?Sized,
ExtendedAttributeValue: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<ExtendedAttributeValue>where
___E: ?Sized,
ExtendedAttributeValue: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireExtendedAttributeValue> for ExtendedAttributeValue
impl TakeFrom<WireExtendedAttributeValue> for ExtendedAttributeValue
Source§fn take_from(from: &WireExtendedAttributeValue) -> Self
fn take_from(from: &WireExtendedAttributeValue) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for ExtendedAttributeValue
impl RefUnwindSafe for ExtendedAttributeValue
impl Send for ExtendedAttributeValue
impl Sync for ExtendedAttributeValue
impl Unpin for ExtendedAttributeValue
impl UnwindSafe for ExtendedAttributeValue
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