Enum rs9p::fcall::Fcall[][src]

pub enum Fcall {
Show variants Rlerror { ecode: u32, }, Tstatfs { fid: u32, }, Rstatfs { statfs: Statfs, }, Tlopen { fid: u32, flags: u32, }, Rlopen { qid: Qid, iounit: u32, }, Tlcreate { fid: u32, name: String, flags: u32, mode: u32, gid: u32, }, Rlcreate { qid: Qid, iounit: u32, }, Tsymlink { fid: u32, name: String, symtgt: String, gid: u32, }, Rsymlink { qid: Qid, }, Tmknod { dfid: u32, name: String, mode: u32, major: u32, minor: u32, gid: u32, }, Rmknod { qid: Qid, }, Trename { fid: u32, dfid: u32, name: String, }, Rrename, Treadlink { fid: u32, }, Rreadlink { target: String, }, Tgetattr { fid: u32, req_mask: GetattrMask, }, Rgetattr { valid: GetattrMask, qid: Qid, stat: Stat, }, Tsetattr { fid: u32, valid: SetattrMask, stat: SetAttr, }, Rsetattr, Txattrwalk { fid: u32, newfid: u32, name: String, }, Rxattrwalk { size: u64, }, Txattrcreate { fid: u32, name: String, attr_size: u64, flags: u32, }, Rxattrcreate, Treaddir { fid: u32, offset: u64, count: u32, }, Rreaddir { data: DirEntryData, }, Tfsync { fid: u32, }, Rfsync, Tlock { fid: u32, flock: Flock, }, Rlock { status: LockStatus, }, Tgetlock { fid: u32, flock: Getlock, }, Rgetlock { flock: Getlock, }, Tlink { dfid: u32, fid: u32, name: String, }, Rlink, Tmkdir { dfid: u32, name: String, mode: u32, gid: u32, }, Rmkdir { qid: Qid, }, Trenameat { olddirfid: u32, oldname: String, newdirfid: u32, newname: String, }, Rrenameat, Tunlinkat { dirfd: u32, name: String, flags: u32, }, Runlinkat, Tauth { afid: u32, uname: String, aname: String, n_uname: u32, }, Rauth { aqid: Qid, }, Tattach { fid: u32, afid: u32, uname: String, aname: String, n_uname: u32, }, Rattach { qid: Qid, }, Tversion { msize: u32, version: String, }, Rversion { msize: u32, version: String, }, Tflush { oldtag: u16, }, Rflush, Twalk { fid: u32, newfid: u32, wnames: Vec<String>, }, Rwalk { wqids: Vec<Qid>, }, Tread { fid: u32, offset: u64, count: u32, }, Rread { data: Data, }, Twrite { fid: u32, offset: u64, data: Data, }, Rwrite { count: u32, }, Tclunk { fid: u32, }, Rclunk, Tremove { fid: u32, }, Rremove,
}

A data type encapsulating the various 9P messages

Variants

Rlerror

Fields of Rlerror

ecode: u32
Tstatfs

Fields of Tstatfs

fid: u32
Rstatfs

Fields of Rstatfs

statfs: Statfs
Tlopen

Fields of Tlopen

fid: u32flags: u32
Rlopen

Fields of Rlopen

qid: Qidiounit: u32
Tlcreate

Fields of Tlcreate

fid: u32name: Stringflags: u32mode: u32gid: u32
Rlcreate

Fields of Rlcreate

qid: Qidiounit: u32

Fields of Tsymlink

fid: u32name: Stringsymtgt: Stringgid: u32

Fields of Rsymlink

qid: Qid
Tmknod

Fields of Tmknod

dfid: u32name: Stringmode: u32major: u32minor: u32gid: u32
Rmknod

Fields of Rmknod

qid: Qid
Trename

Fields of Trename

fid: u32dfid: u32name: String
Rrename

Fields of Treadlink

fid: u32

Fields of Rreadlink

target: String
Tgetattr

Fields of Tgetattr

fid: u32req_mask: GetattrMask
Rgetattr

Reserved members specified in the protocol are handled in Encodable/Decodable traits.

Fields of Rgetattr

valid: GetattrMaskqid: Qidstat: Stat
Tsetattr

Fields of Tsetattr

fid: u32valid: SetattrMaskstat: SetAttr
Rsetattr
Txattrwalk

Fields of Txattrwalk

fid: u32newfid: u32name: String
Rxattrwalk

Fields of Rxattrwalk

size: u64
Txattrcreate

Fields of Txattrcreate

fid: u32name: Stringattr_size: u64flags: u32
Rxattrcreate
Treaddir

Fields of Treaddir

fid: u32offset: u64count: u32
Rreaddir

Fields of Rreaddir

data: DirEntryData
Tfsync

Fields of Tfsync

fid: u32
Rfsync
Tlock

Fields of Tlock

fid: u32flock: Flock
Rlock

Fields of Rlock

status: LockStatus
Tgetlock

Fields of Tgetlock

fid: u32flock: Getlock
Rgetlock

Fields of Rgetlock

flock: Getlock

Fields of Tlink

dfid: u32fid: u32name: String
Tmkdir

Fields of Tmkdir

dfid: u32name: Stringmode: u32gid: u32
Rmkdir

Fields of Rmkdir

qid: Qid
Trenameat

Fields of Trenameat

olddirfid: u32oldname: Stringnewdirfid: u32newname: String
Rrenameat
Tunlinkat

Fields of Tunlinkat

dirfd: u32name: Stringflags: u32
Runlinkat
Tauth

Fields of Tauth

afid: u32uname: Stringaname: Stringn_uname: u32
Rauth

Fields of Rauth

aqid: Qid
Tattach

Fields of Tattach

fid: u32afid: u32uname: Stringaname: Stringn_uname: u32
Rattach

Fields of Rattach

qid: Qid
Tversion

Fields of Tversion

msize: u32version: String
Rversion

Fields of Rversion

msize: u32version: String
Tflush

Fields of Tflush

oldtag: u16
Rflush
Twalk

Fields of Twalk

fid: u32newfid: u32wnames: Vec<String>
Rwalk

Fields of Rwalk

wqids: Vec<Qid>
Tread

Fields of Tread

fid: u32offset: u64count: u32
Rread

Fields of Rread

data: Data
Twrite

Fields of Twrite

fid: u32offset: u64data: Data
Rwrite

Fields of Rwrite

count: u32
Tclunk

Fields of Tclunk

fid: u32
Rclunk
Tremove

Fields of Tremove

fid: u32
Rremove

Implementations

impl Fcall[src]

pub fn fids(&self) -> Vec<u32>[src]

Get the fids which self contains

pub fn newfid(&self) -> Option<u32>[src]

Get the newfid which self contains

pub fn qids(&self) -> Vec<Qid>[src]

Get the qids which self contains

Trait Implementations

impl Clone for Fcall[src]

impl Debug for Fcall[src]

impl Eq for Fcall[src]

impl<'a> From<&'a Fcall> for MsgType[src]

impl Hash for Fcall[src]

impl Ord for Fcall[src]

impl PartialEq<Fcall> for Fcall[src]

impl PartialOrd<Fcall> for Fcall[src]

impl StructuralEq for Fcall[src]

impl StructuralPartialEq for Fcall[src]

Auto Trait Implementations

impl RefUnwindSafe for Fcall

impl Send for Fcall

impl Sync for Fcall

impl Unpin for Fcall

impl UnwindSafe for Fcall

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.