pub struct AttrOverrides {
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub unix_times: Option<UnixTimes>,
}Expand description
Caller-supplied overrides. None means “decide for me”.
Fields§
§mode: Option<u32>Permission bits; the file-type bits are the driver’s business.
uid: Option<u32>§gid: Option<u32>§unix_times: Option<UnixTimes>Preserved Unix mtime/atime/ctime from the source (host file,
tar Header, or source-image inode). Threaded through the shared
importer so create_file records the source’s dates instead of
stamping the current time. See crate::times::UnixTimes.
Implementations§
Source§impl AttrOverrides
impl AttrOverrides
Trait Implementations§
Source§impl Clone for AttrOverrides
impl Clone for AttrOverrides
impl Copy for AttrOverrides
Source§impl Debug for AttrOverrides
impl Debug for AttrOverrides
Auto Trait Implementations§
impl Freeze for AttrOverrides
impl RefUnwindSafe for AttrOverrides
impl Send for AttrOverrides
impl Sync for AttrOverrides
impl Unpin for AttrOverrides
impl UnsafeUnpin for AttrOverrides
impl UnwindSafe for AttrOverrides
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