Struct ssh2::FileStat [] [src]

pub struct FileStat {
    pub size: Option<u64>,
    pub uid: Option<u32>,
    pub gid: Option<u32>,
    pub perm: Option<u32>,
    pub atime: Option<u64>,
    pub mtime: Option<u64>,
}

Metadata information about a remote file.

Fields are not necessarily all provided

Fields

File size, in bytes of the file.

Owner ID of the file

Owning group of the file

Permissions (mode) of the file

Last access time of the file

Last modification time of the file

Methods

impl FileStat
[src]

[src]

Returns the file type for this filestat.

[src]

Returns whether this metadata is for a directory.

[src]

Returns whether this metadata is for a regular file.

[src]

Creates a new instance of a stat from a raw instance.

[src]

Convert this stat structure to its raw representation.

Trait Implementations

impl Debug for FileStat
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for FileStat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for FileStat
[src]

impl PartialEq for FileStat
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for FileStat

impl Sync for FileStat