pub struct Stat {
pub st_mode: u32,
pub st_uid: u32,
pub st_gid: u32,
pub st_mtim_sec: i64,
pub xattrs: RefCell<BTreeMap<Box<OsStr>, Box<[u8]>>>,
}Expand description
File metadata similar to struct stat from POSIX.
Fields§
§st_mode: u32File mode and permissions bits.
st_uid: u32User ID of owner.
st_gid: u32Group ID of owner.
st_mtim_sec: i64Modification time in seconds since Unix epoch.
xattrs: RefCell<BTreeMap<Box<OsStr>, Box<[u8]>>>Extended attributes as key-value pairs.
Implementations§
Source§impl Stat
impl Stat
Sourcepub fn uninitialized() -> Self
pub fn uninitialized() -> Self
Creates a placeholder stat for uninitialized root directories.
This stat has obviously invalid metadata (mode 0) that must be overwritten
before computing digests. It is intended for use when building a filesystem
incrementally (e.g., from OCI layers) where the final root metadata will be
set via copy_root_metadata_from_usr().
NOTE: If changing this, also update doc/oci.md.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Stat
impl !RefUnwindSafe for Stat
impl Send for Stat
impl !Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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