pub struct OpResult {
pub op: u32,
pub status: u32,
pub stateid: Option<StateId>,
pub filehandle: Option<Vec<u8>>,
pub size: Option<u64>,
pub mtime: Option<(i64, i64)>,
pub data: Option<Vec<u8>>,
}Expand description
Parsed result of a single operation in a compound reply.
Fields§
§op: u32§status: u32§stateid: Option<StateId>For OPEN: the returned stateid.
filehandle: Option<Vec<u8>>For GETFH: the returned filehandle.
size: Option<u64>For GETATTR: file size (if SIZE bit was in bitmap).
mtime: Option<(i64, i64)>For GETATTR: modification time (seconds, nanoseconds).
data: Option<Vec<u8>>For READ: the returned file data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpResult
impl RefUnwindSafe for OpResult
impl Send for OpResult
impl Sync for OpResult
impl Unpin for OpResult
impl UnsafeUnpin for OpResult
impl UnwindSafe for OpResult
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
§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