pub struct FdArgs {
pub fd: Fd,
pub length: u64,
pub buffer_addr: u64,
pub length_addr: u64,
}Expand description
Arguments shared by read, write and inherited fd syscalls
Fields§
§fd: FdFor each and write syscalls, this contains the file descriptor to use
length: u64Length to read or length to write for read/write syscalls. Inherited fd syscall will ignore this field.
buffer_addr: u64VM address to keep returned data
length_addr: u64VM address for a input / output length buffer. For read / write syscalls, this contains the actual data length. For inherited fd syscall, this contains the number of file descriptors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FdArgs
impl RefUnwindSafe for FdArgs
impl Send for FdArgs
impl Sync for FdArgs
impl Unpin for FdArgs
impl UnwindSafe for FdArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more