#[repr(C)]pub struct ReadParams {
pub len: u64,
pub ret: i64,
pub buf: GuestPhysAddr,
pub fd: i32,
}Expand description
Parameters for a FileRead hypercall.
Fields§
§len: u64Number of bytes to read into the buffer.
ret: i64Number of bytes read on success or errno.
buf: GuestPhysAddrBuffer to read the file into.
fd: i32File descriptor of the file.
Trait Implementations§
Source§impl Clone for ReadParams
impl Clone for ReadParams
Source§fn clone(&self) -> ReadParams
fn clone(&self) -> ReadParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadParams
impl Debug for ReadParams
impl Copy for ReadParams
Auto Trait Implementations§
impl Freeze for ReadParams
impl RefUnwindSafe for ReadParams
impl Send for ReadParams
impl Sync for ReadParams
impl Unpin for ReadParams
impl UnsafeUnpin for ReadParams
impl UnwindSafe for ReadParams
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