[−][src]Struct async_ssh2::FileStat
Metadata information about a remote file.
Fields are not necessarily all provided
Fields
size: Option<u64>File size, in bytes of the file.
uid: Option<u32>Owner ID of the file
gid: Option<u32>Owning group of the file
perm: Option<u32>Permissions (mode) of the file
atime: Option<u64>Last access time of the file
mtime: Option<u64>Last modification time of the file
Implementations
impl FileStat[src]
pub fn file_type(&self) -> FileType[src]
Returns the file type for this filestat.
pub fn is_dir(&self) -> bool[src]
Returns whether this metadata is for a directory.
pub fn is_file(&self) -> bool[src]
Returns whether this metadata is for a regular file.
pub fn from_raw(raw: &LIBSSH2_SFTP_ATTRIBUTES) -> FileStat[src]
Creates a new instance of a stat from a raw instance.
pub fn raw(&self) -> LIBSSH2_SFTP_ATTRIBUTES[src]
Convert this stat structure to its raw representation.
Trait Implementations
impl Clone for FileStat[src]
impl Debug for FileStat[src]
impl Eq for FileStat[src]
impl PartialEq<FileStat> for FileStat[src]
impl StructuralEq for FileStat[src]
impl StructuralPartialEq for FileStat[src]
Auto Trait Implementations
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnwindSafe for FileStat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,