#[repr(C, packed(1))]pub struct WriteParams {
pub fd: i32,
pub buf: GuestVirtAddr,
pub len: usize,
}
Expand description
Parameters for a FileWrite
hypercall.
Fields§
§fd: i32
File descriptor of the file.
buf: GuestVirtAddr
Buffer to be written into the file.
len: usize
Number of bytes in the buffer to be written.
Trait Implementations§
Source§impl Clone for WriteParams
impl Clone for WriteParams
Source§fn clone(&self) -> WriteParams
fn clone(&self) -> WriteParams
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 WriteParams
impl Debug for WriteParams
impl Copy for WriteParams
Auto Trait Implementations§
impl Freeze for WriteParams
impl RefUnwindSafe for WriteParams
impl Send for WriteParams
impl Sync for WriteParams
impl Unpin for WriteParams
impl UnwindSafe for WriteParams
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