pub enum Prestat {
Dir(PrestatDir),
}
Available on crate feature
preview1
only.Variants§
Dir(PrestatDir)
Trait Implementations§
Source§impl From<Prestat> for Prestat
impl From<Prestat> for Prestat
Prestat isn’t a c-style enum, its a union where the variant has a payload. Its the only one of those we need to convert, so write it by hand.
Source§impl GuestType for Prestat
impl GuestType for Prestat
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<Self>,
) -> Result<Self, GuestError>
fn read( mem: &GuestMemory<'_>, location: GuestPtr<Self>, ) -> Result<Self, 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 StructuralPartialEq for Prestat
Auto Trait Implementations§
impl Freeze for Prestat
impl RefUnwindSafe for Prestat
impl Send for Prestat
impl Sync for Prestat
impl Unpin for Prestat
impl UnwindSafe for Prestat
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> 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