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 AIX nor NetBSD nor QNX Neutrino nor WASI and neither ESP-IDF nor GNU/Hurd nor Horizon nor NuttX nor Play Station Vita nor RTEMS OS nor VxWorks only.
pub fn accessed(&self) -> Result<SystemTime>
Available on neither AIX nor NetBSD nor QNX Neutrino nor WASI and neither ESP-IDF nor GNU/Hurd nor Horizon nor NuttX nor Play Station Vita nor RTEMS OS nor VxWorks only.
pub fn created(&self) -> Result<SystemTime>
Available on neither AIX nor NetBSD nor QNX Neutrino nor WASI and neither Apple nor Cygwin nor FreeBSD nor OpenBSD nor Play Station Vita 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 UnsafeUnpin 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 SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type #102070)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