pub struct FsMetadata { /* private fields */ }Expand description
Capacity and allocation information for a filesystem.
Implementations§
Source§impl FsMetadata
impl FsMetadata
Sourcepub const fn available(&self) -> u64
pub const fn available(&self) -> u64
Returns the space available to an unprivileged caller in bytes.
Sourcepub const fn block_size(&self) -> u32
pub const fn block_size(&self) -> u32
Returns the fundamental filesystem block size in bytes.
Sourcepub fn unix(&self) -> Option<&UnixFsMetadata>
pub fn unix(&self) -> Option<&UnixFsMetadata>
Returns the Unix-specific filesystem metadata, if present.
Sourcepub fn windows(&self) -> Option<&WindowsFsMetadata>
pub fn windows(&self) -> Option<&WindowsFsMetadata>
Returns the Windows-specific filesystem metadata, if present.
Sourcepub fn no_suid(&self) -> Option<bool>
pub fn no_suid(&self) -> Option<bool>
Returns whether set-user-ID and set-group-ID bits are disabled, if known.
Sourcepub fn synchronous(&self) -> Option<bool>
pub fn synchronous(&self) -> Option<bool>
Returns whether writes are synchronous, if known.
Sourcepub fn no_atime(&self) -> Option<bool>
pub fn no_atime(&self) -> Option<bool>
Returns whether access-time updates are disabled, if known.
Sourcepub fn no_dir_atime(&self) -> Option<bool>
pub fn no_dir_atime(&self) -> Option<bool>
Returns whether directory access-time updates are disabled, if known.
Trait Implementations§
Source§impl Clone for FsMetadata
impl Clone for FsMetadata
Source§fn clone(&self) -> FsMetadata
fn clone(&self) -> FsMetadata
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 moreSource§impl Debug for FsMetadata
impl Debug for FsMetadata
Source§impl<'de> Deserialize<'de> for FsMetadata
impl<'de> Deserialize<'de> for FsMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FsMetadata
impl RefUnwindSafe for FsMetadata
impl Send for FsMetadata
impl Sync for FsMetadata
impl Unpin for FsMetadata
impl UnsafeUnpin for FsMetadata
impl UnwindSafe for FsMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more