Enum syncio::XattrSetMode
source · pub enum XattrSetMode {
Set = 1,
Create = 2,
Replace = 3,
}
Expand description
Describes the mode of operation when setting an extended attribute.
Variants§
Set = 1
Create the extended attribute if it doesn’t exist, replace the value if it does.
Create = 2
Create the extended attribute if it doesn’t exist, failing if it does.
Replace = 3
Replace the value of the extended attribute, failing if it doesn’t exist.
Trait Implementations§
source§impl Clone for XattrSetMode
impl Clone for XattrSetMode
source§fn clone(&self) -> XattrSetMode
fn clone(&self) -> XattrSetMode
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 XattrSetMode
impl Debug for XattrSetMode
impl Copy for XattrSetMode
Auto Trait Implementations§
impl Freeze for XattrSetMode
impl RefUnwindSafe for XattrSetMode
impl Send for XattrSetMode
impl Sync for XattrSetMode
impl Unpin for XattrSetMode
impl UnwindSafe for XattrSetMode
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