pub struct FileAttr {
stat: stat64,
statx_extra_fields: Option<StatxExtraFields>,
}
Fields§
§stat: stat64
§statx_extra_fields: Option<StatxExtraFields>
Implementations§
Source§impl FileAttr
impl FileAttr
pub fn modified(&self) -> Result<SystemTime>
Available on neither NetBSD nor
target_os=nto
nor target_os=aix
and neither target_os=vxworks
nor target_os=espidf
nor target_os=horizon
nor target_os=vita
nor target_os=hurd
nor target_os=rtems
nor target_os=nuttx
only.pub fn accessed(&self) -> Result<SystemTime>
Available on neither NetBSD nor
target_os=nto
nor target_os=aix
and neither target_os=vxworks
nor target_os=espidf
nor target_os=horizon
nor target_os=vita
nor target_os=hurd
nor target_os=rtems
nor target_os=nuttx
only.pub fn created(&self) -> Result<SystemTime>
Available on neither NetBSD nor
target_os=nto
nor target_os=aix
and neither FreeBSD nor OpenBSD nor target_os=vita
nor Apple nor Cygwin only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileAttr
impl RefUnwindSafe for FileAttr
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnwindSafe for FileAttr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more