pub struct FileIdentity {
pub device: Option<u64>,
pub inode: Option<u64>,
pub changed: Option<SystemTime>,
}Expand description
The device and inode numbers and the status-change time of a file on
Unix. Unlike the modification time, none of these can be set from
userspace, so a rewrite that restores the old mtime still moves one of
them. Every field is None on platforms that do not expose them.
Fields§
§device: Option<u64>Device number.
inode: Option<u64>Inode number.
changed: Option<SystemTime>Status-change time (ctime), when it is representable.
Implementations§
Trait Implementations§
Source§impl Clone for FileIdentity
impl Clone for FileIdentity
Source§fn clone(&self) -> FileIdentity
fn clone(&self) -> FileIdentity
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 moreimpl Copy for FileIdentity
Source§impl Debug for FileIdentity
impl Debug for FileIdentity
impl Eq for FileIdentity
Source§impl PartialEq for FileIdentity
impl PartialEq for FileIdentity
Source§fn eq(&self, other: &FileIdentity) -> bool
fn eq(&self, other: &FileIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileIdentity
Auto Trait Implementations§
impl Freeze for FileIdentity
impl RefUnwindSafe for FileIdentity
impl Send for FileIdentity
impl Sync for FileIdentity
impl Unpin for FileIdentity
impl UnsafeUnpin for FileIdentity
impl UnwindSafe for FileIdentity
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