pub enum Prestat {
Dir(PrestatDir),
}
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<'a> GuestType<'a> for Prestat
impl<'a> GuestType<'a> 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§impl PartialEq for Prestat
impl PartialEq for Prestat
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> 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