pub struct FileStatus { /* private fields */ }Expand description
Interface that represents the client side information for a file or directory.
Implementations§
Source§impl FileStatus
impl FileStatus
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Is this a directory?
Sourcepub fn permission(&self) -> i16
pub fn permission(&self) -> i16
Get the permissions associated with the file
Sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Get the block size of the file.
Sourcepub fn replica_count(&self) -> i16
pub fn replica_count(&self) -> i16
Get the replication factor of a file.
Sourcepub fn last_modified(&self) -> time_t
pub fn last_modified(&self) -> time_t
Get the last modification time for the file in seconds
Sourcepub fn last_access(&self) -> time_t
pub fn last_access(&self) -> time_t
Get the last access time for the file in seconds
Auto Trait Implementations§
impl Freeze for FileStatus
impl RefUnwindSafe for FileStatus
impl !Send for FileStatus
impl !Sync for FileStatus
impl Unpin for FileStatus
impl UnwindSafe for FileStatus
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