pub struct Fd(/* private fields */);
Available on crate feature
preview1
only.Implementations§
Trait Implementations§
Source§impl GuestType for Fd
impl GuestType for Fd
Source§fn guest_size() -> u32
fn guest_size() -> u32
Returns the size, in bytes, of this type in the guest memory.
Source§fn guest_align() -> usize
fn guest_align() -> usize
Returns the required alignment of this type, in bytes, for both guest
and host memory.
Source§fn read(mem: &GuestMemory<'_>, location: GuestPtr<Fd>) -> Result<Fd, GuestError>
fn read(mem: &GuestMemory<'_>, location: GuestPtr<Fd>) -> Result<Fd, GuestError>
Reads this value from the provided
ptr
. Read moreSource§fn write(
mem: &mut GuestMemory<'_>,
location: GuestPtr<Self>,
val: Self,
) -> Result<(), GuestError>
fn write( mem: &mut GuestMemory<'_>, location: GuestPtr<Self>, val: Self, ) -> Result<(), GuestError>
impl Copy for Fd
impl Eq for Fd
impl StructuralPartialEq for Fd
Auto Trait Implementations§
impl Freeze for Fd
impl RefUnwindSafe for Fd
impl Send for Fd
impl Sync for Fd
impl Unpin for Fd
impl UnwindSafe for Fd
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more