Struct FileAttr
pub struct FileAttr { pub(in ::sys::fs::unix) stat: stat64, pub(in ::sys::fs::unix) statx_extra_fields: Option<StatxExtraFields> }
Fields
stat: stat64statx_extra_fields: Option<StatxExtraFields>
Implementations
impl FileAttr
fn from_stat64(stat: stat64) -> Self
impl FileAttr
fn modified(&self) -> Result<SystemTime>fn accessed(&self) -> Result<SystemTime>fn created(&self) -> Result<SystemTime>
impl FileAttr
fn size(&self) -> u64fn perm(&self) -> FilePermissionsfn file_type(&self) -> FileType
Trait Implementations
impl AsInner<stat64> for FileAttr
fn as_inner(&self) -> &stat64
impl Clone for FileAttr
fn clone(&self) -> FileAttr
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
impl<T> Any for FileAttr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FileAttr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FileAttr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FileAttr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FileAttr
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for FileAttr
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FileAttr
impl<T> ToOwned for FileAttr
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FileAttr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FileAttr
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FileAttr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>