Struct uhyve_interface::parameters::ReadPrams
source · #[repr(C, packed(1))]pub struct ReadPrams {
pub fd: i32,
pub buf: PhysAddr,
pub len: usize,
pub ret: isize,
}
Expand description
Parameters for a FileRead
hypercall.
Fields§
§fd: i32
File descriptor of the file.
buf: PhysAddr
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§
Auto Trait Implementations§
impl Freeze for ReadPrams
impl RefUnwindSafe for ReadPrams
impl Send for ReadPrams
impl Sync for ReadPrams
impl Unpin for ReadPrams
impl UnwindSafe for ReadPrams
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