#[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: i32File descriptor of the file.
buf: GuestVirtAddrBuffer to be written into the file.
len: usizeNumber 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 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 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