pub struct StatResult {
pub mode: u32,
pub uid: u32,
pub gid: u32,
pub dev: u64,
pub nlink: u64,
pub file_type: FileType,
}Expand description
Result of stat() on a path component.
Fields§
§mode: u32File permission mode bits (e.g., 0o755).
uid: u32Owner user ID.
gid: u32Owner group ID.
dev: u64Device ID (st_dev) – used to join with mount table.
nlink: u64Number of hard links.
file_type: FileTypeType of filesystem object.
Trait Implementations§
Source§impl Clone for StatResult
impl Clone for StatResult
Source§fn clone(&self) -> StatResult
fn clone(&self) -> StatResult
Returns a duplicate 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 StatResult
impl Debug for StatResult
Source§impl PartialEq for StatResult
impl PartialEq for StatResult
Source§impl Serialize for StatResult
impl Serialize for StatResult
impl Eq for StatResult
impl StructuralPartialEq for StatResult
Auto Trait Implementations§
impl Freeze for StatResult
impl RefUnwindSafe for StatResult
impl Send for StatResult
impl Sync for StatResult
impl Unpin for StatResult
impl UnsafeUnpin for StatResult
impl UnwindSafe for StatResult
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