pub enum SetExtendedAttributeMode {
Set,
Create,
Replace,
}
Expand description
The mode of operation when setting extended attributes. This is the same as the fidl definition but is replicated here so we don’t have fuchsia.io structures in the api, so this can be used on host.
Variants§
Set
Create the extended attribute if it doesn’t exist, replace the value if it does.
Create
Create the extended attribute if it doesn’t exist, fail if it does.
Replace
Replace the extended attribute value if it exists, fail if it doesn’t.
Trait Implementations§
Source§impl Clone for SetExtendedAttributeMode
impl Clone for SetExtendedAttributeMode
Source§fn clone(&self) -> SetExtendedAttributeMode
fn clone(&self) -> SetExtendedAttributeMode
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 SetExtendedAttributeMode
impl Debug for SetExtendedAttributeMode
Source§impl From<SetExtendedAttributeMode> for SetExtendedAttributeMode
impl From<SetExtendedAttributeMode> for SetExtendedAttributeMode
Source§fn from(other: SetExtendedAttributeMode) -> SetExtendedAttributeMode
fn from(other: SetExtendedAttributeMode) -> SetExtendedAttributeMode
Converts to this type from the input type.
Source§impl PartialEq for SetExtendedAttributeMode
impl PartialEq for SetExtendedAttributeMode
impl Copy for SetExtendedAttributeMode
impl Eq for SetExtendedAttributeMode
impl StructuralPartialEq for SetExtendedAttributeMode
Auto Trait Implementations§
impl Freeze for SetExtendedAttributeMode
impl RefUnwindSafe for SetExtendedAttributeMode
impl Send for SetExtendedAttributeMode
impl Sync for SetExtendedAttributeMode
impl Unpin for SetExtendedAttributeMode
impl UnwindSafe for SetExtendedAttributeMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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,
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>
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 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>
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