#[repr(C, packed(1))]pub struct ReadParams {
pub fd: i32,
pub buf: GuestVirtAddr,
pub len: usize,
pub ret: isize,
}
Expand description
Parameters for a FileRead
hypercall.
Fields§
§fd: i32
File descriptor of the file.
buf: GuestVirtAddr
Buffer to read the file into.
len: usize
Number of bytes to read into the buffer.
ret: isize
Number of bytes read on success. -1
on failure.
Trait Implementations§
Source§impl Clone for ReadParams
impl Clone for ReadParams
Source§fn clone(&self) -> ReadParams
fn clone(&self) -> ReadParams
Returns a copy 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 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