pub enum ExtendedAttributeValue {
Bytes(Vec<u8>),
Buffer(Vmo),
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§
Implementations§
Source§impl ExtendedAttributeValue
impl ExtendedAttributeValue
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl CompatFrom<ExtendedAttributeValue> for ExtendedAttributeValue
impl CompatFrom<ExtendedAttributeValue> for ExtendedAttributeValue
Source§fn compat_from(value: ExtendedAttributeValue) -> Self
fn compat_from(value: ExtendedAttributeValue) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<ExtendedAttributeValue> for ExtendedAttributeValue
impl CompatFrom<ExtendedAttributeValue> for ExtendedAttributeValue
Source§fn compat_from(value: ExtendedAttributeValue) -> Self
fn compat_from(value: ExtendedAttributeValue) -> Self
Converts
value into a value of this type.Source§impl Debug for ExtendedAttributeValue
impl Debug for ExtendedAttributeValue
Source§impl<___E> Encode<ExtendedAttributeValue<'static>, ___E> for ExtendedAttributeValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<ExtendedAttributeValue<'static>, ___E> for ExtendedAttributeValuewhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<ExtendedAttributeValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<ExtendedAttributeValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<ExtendedAttributeValue<'static>, ___E> for ExtendedAttributeValue
impl<___E> EncodeOption<ExtendedAttributeValue<'static>, ___E> for ExtendedAttributeValue
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<ExtendedAttributeValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<ExtendedAttributeValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'de> FromWire<ExtendedAttributeValue<'de>> for ExtendedAttributeValue
impl<'de> FromWire<ExtendedAttributeValue<'de>> for ExtendedAttributeValue
Source§fn from_wire(wire: ExtendedAttributeValue<'de>) -> Self
fn from_wire(wire: ExtendedAttributeValue<'de>) -> Self
Converts the given
wire to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireOption<ExtendedAttributeValue<'de>> for Box<ExtendedAttributeValue>
impl<'de> FromWireOption<ExtendedAttributeValue<'de>> for Box<ExtendedAttributeValue>
Source§fn from_wire_option(wire: ExtendedAttributeValue<'de>) -> Option<Self>
fn from_wire_option(wire: ExtendedAttributeValue<'de>) -> Option<Self>
Converts the given
wire to an option of this type.Source§impl<'de> FromWireOption<ExtendedAttributeValue<'de>> for ExtendedAttributeValue
impl<'de> FromWireOption<ExtendedAttributeValue<'de>> for ExtendedAttributeValue
Source§fn from_wire_option(wire: ExtendedAttributeValue<'de>) -> Option<Self>
fn from_wire_option(wire: ExtendedAttributeValue<'de>) -> Option<Self>
Converts the given
wire to an option of this type.Source§impl PartialEq for ExtendedAttributeValue
impl PartialEq for ExtendedAttributeValue
impl StructuralPartialEq for ExtendedAttributeValue
Auto 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]