pub struct SetAttributes {
pub file: VfFile,
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub size: Option<u64>,
pub atime: Option<(i64, u32)>,
pub mtime: Option<(i64, u32)>,
pub follow_symlinks: bool,
}Expand description
Valid-by-construction metadata mutation request.
Fields§
§file: VfFile§mode: Option<u32>§uid: Option<u32>§gid: Option<u32>§size: Option<u64>§atime: Option<(i64, u32)>§mtime: Option<(i64, u32)>§follow_symlinks: boolImplementations§
Source§impl SetAttributes
impl SetAttributes
pub fn new(file: VfFile) -> SetAttributes
pub fn no_follow(self) -> SetAttributes
pub fn into_legacy(self) -> VfAttrs
Trait Implementations§
Source§impl Clone for SetAttributes
impl Clone for SetAttributes
Source§fn clone(&self) -> SetAttributes
fn clone(&self) -> SetAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetAttributes
impl Debug for SetAttributes
impl Eq for SetAttributes
Source§impl PartialEq for SetAttributes
impl PartialEq for SetAttributes
impl StructuralPartialEq for SetAttributes
Auto Trait Implementations§
impl Freeze for SetAttributes
impl RefUnwindSafe for SetAttributes
impl Send for SetAttributes
impl Sync for SetAttributes
impl Unpin for SetAttributes
impl UnsafeUnpin for SetAttributes
impl UnwindSafe for SetAttributes
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