pub enum Nfs4Op {
Sequence {
session_id: [u8; 16],
sequence_id: u32,
slot_id: u32,
highest_slot_id: u32,
cache_this: bool,
},
PutFh {
handle: Vec<u8>,
},
PutRootFh,
Lookup {
name: String,
},
Open {
seqid: u32,
share_access: u32,
share_deny: u32,
clientid: u64,
owner: Vec<u8>,
filename: String,
mode: u32,
create_owner: Option<String>,
create_group: Option<String>,
create_mtime: Option<(i64, i64)>,
},
Write {
stateid: StateId,
offset: u64,
stable: WriteStable,
data: Vec<u8>,
},
Read {
stateid: StateId,
offset: u64,
count: u32,
},
SetAttr {
stateid: StateId,
mode: Option<u32>,
owner: Option<String>,
owner_group: Option<String>,
mtime: Option<(i64, i64)>,
},
Close {
seqid: u32,
stateid: StateId,
},
GetAttr {
attr_request: [u32; 2],
},
GetFh,
ReclaimComplete,
}Expand description
A single NFSv4.2 compound operation.
Variants§
Sequence
PutFh
PutRootFh
Lookup
Open
Fields
Write
Read
SetAttr
Fields
Close
GetAttr
GetFh
ReclaimComplete
Tell server we have no state to reclaim (ends grace period for this session).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nfs4Op
impl RefUnwindSafe for Nfs4Op
impl Send for Nfs4Op
impl Sync for Nfs4Op
impl Unpin for Nfs4Op
impl UnsafeUnpin for Nfs4Op
impl UnwindSafe for Nfs4Op
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more