pub struct SetAttr {
pub mode: Option<mode_t>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub size: Option<u64>,
pub lock_owner: Option<u64>,
pub atime: Option<Timestamp>,
pub mtime: Option<Timestamp>,
pub ctime: Option<Timestamp>,
}
Expand description
the setattr argument.
Fields§
§mode: Option<mode_t>
set file or directory mode.
uid: Option<u32>
set file or directory uid.
gid: Option<u32>
set file or directory gid.
size: Option<u64>
set file or directory size.
lock_owner: Option<u64>
the lock_owner argument.
atime: Option<Timestamp>
set file or directory atime.
mtime: Option<Timestamp>
set file or directory mtime.
ctime: Option<Timestamp>
set file or directory ctime.
Trait Implementations§
impl Eq for SetAttr
impl StructuralPartialEq for SetAttr
Auto Trait Implementations§
impl Freeze for SetAttr
impl RefUnwindSafe for SetAttr
impl Send for SetAttr
impl Sync for SetAttr
impl Unpin for SetAttr
impl UnwindSafe for SetAttr
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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