pub struct MetaData(/* private fields */);
Expand description
Metadata information about a file.
Implementations§
Source§impl MetaData
impl MetaData
Sourcepub fn len(&self) -> Option<u64>
pub fn len(&self) -> Option<u64>
Returns the size of the file in bytes.
Return None
if the server did not return
the size.
Sourcepub fn uid(&self) -> Option<u32>
pub fn uid(&self) -> Option<u32>
Returns the user ID of the owner.
Return None
if the server did not return
the uid.
Sourcepub fn gid(&self) -> Option<u32>
pub fn gid(&self) -> Option<u32>
Returns the group ID of the owner.
Return None
if the server did not return
the gid.
Sourcepub fn permissions(&self) -> Option<Permissions>
pub fn permissions(&self) -> Option<Permissions>
Returns the permissions.
Return None
if the server did not return
the permissions.
Sourcepub fn file_type(&self) -> Option<FileType>
pub fn file_type(&self) -> Option<FileType>
Returns the file type.
Return None
if the server did not return
the file type.
Sourcepub fn accessed(&self) -> Option<UnixTimeStamp>
pub fn accessed(&self) -> Option<UnixTimeStamp>
Returns the last access time.
Return None
if the server did not return
the last access time.
Sourcepub fn modified(&self) -> Option<UnixTimeStamp>
pub fn modified(&self) -> Option<UnixTimeStamp>
Returns the last modification time.
Return None
if the server did not return
the last modification time.
Trait Implementations§
impl Copy for MetaData
impl Eq for MetaData
impl StructuralPartialEq for MetaData
Auto Trait Implementations§
impl Freeze for MetaData
impl RefUnwindSafe for MetaData
impl Send for MetaData
impl Sync for MetaData
impl Unpin for MetaData
impl UnwindSafe for MetaData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)