Struct rs9p::fcall::Stat[][src]

pub struct Stat {
    pub mode: u32,
    pub uid: u32,
    pub gid: u32,
    pub nlink: u64,
    pub rdev: u64,
    pub size: u64,
    pub blksize: u64,
    pub blocks: u64,
    pub atime: Time,
    pub mtime: Time,
    pub ctime: Time,
}

File attributes corresponding to struct stat of Linux.

Stat can be constructed from std::fs::Metadata via From trait

Protocol

9P2000.L

Fields

mode: u32

Protection

uid: u32

User ID of owner

gid: u32

Group ID of owner

nlink: u64

Number of hard links

rdev: u64

Device ID (if special file)

size: u64

Total size, in bytes

blksize: u64

Blocksize for file system I/O

blocks: u64

Number of 512B blocks allocated

atime: Time

Time of last access

mtime: Time

Time of last modification

ctime: Time

Time of last status change

Trait Implementations

impl Clone for Stat[src]

impl Copy for Stat[src]

impl Debug for Stat[src]

impl Decodable for Stat[src]

impl Encodable for Stat[src]

impl Eq for Stat[src]

impl<'a> From<&'a Metadata> for Stat[src]

impl From<Metadata> for Stat[src]

impl Hash for Stat[src]

impl Ord for Stat[src]

impl PartialEq<Stat> for Stat[src]

impl PartialOrd<Stat> for Stat[src]

impl StructuralEq for Stat[src]

impl StructuralPartialEq for Stat[src]

Auto Trait Implementations

impl RefUnwindSafe for Stat

impl Send for Stat

impl Sync for Stat

impl Unpin for Stat

impl UnwindSafe for Stat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.