#[repr(C)]pub enum StatResult {
None,
Success,
Error(i32),
}Expand description
Result of a FileStat hypercall.
Variants§
None
No result. Guests should set this value before calling the hypercall.
Success
FileAttr was written to attr on success.
Error(i32)
Error with libc errno.
Trait Implementations§
Source§impl Clone for StatResult
impl Clone for StatResult
Source§fn clone(&self) -> StatResult
fn clone(&self) -> StatResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatResult
Source§impl Debug for StatResult
impl Debug for StatResult
impl Eq for StatResult
Source§impl PartialEq for StatResult
impl PartialEq for StatResult
Source§fn eq(&self, other: &StatResult) -> bool
fn eq(&self, other: &StatResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatResult
Auto Trait Implementations§
impl Freeze for StatResult
impl RefUnwindSafe for StatResult
impl Send for StatResult
impl Sync for StatResult
impl Unpin for StatResult
impl UnsafeUnpin for StatResult
impl UnwindSafe for StatResult
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