Skip to main content

VMHandleTableSlot

Struct VMHandleTableSlot 

Source
pub struct VMHandleTableSlot<P: PtrSize>(pub P);
Expand description

Offsets of fields within the VMHandleTableSlot type.

Tuple Fields§

§0: P

Implementations§

Source§

impl<P: PtrSize> VMHandleTableSlot<P>

Source

pub fn tag(&self) -> u8

The offset of the u32 tag of VMHandleTableSlot.

Source

pub fn tag_size(&self) -> u8

The size, in bytes, of the u32 tag of VMHandleTableSlot.

Source

pub fn payload(&self) -> u8

The offset at which every variant of VMHandleTableSlot lays out its fields.

Source

pub fn align(&self) -> u8

The alignment of the VMHandleTableSlot type.

Source

pub fn size(&self) -> u8

The size of the VMHandleTableSlot type.

Source

pub fn free(&self) -> Free<&P>

Get the offsets of the Free variant’s fields.

Source

pub fn resource_own(&self) -> ResourceOwn<&P>

Get the offsets of the ResourceOwn variant’s fields.

Source

pub fn resource_borrow(&self) -> ResourceBorrow<&P>

Get the offsets of the ResourceBorrow variant’s fields.

Source

pub fn host_task(&self) -> HostTask<&P>

Get the offsets of the HostTask variant’s fields.

Source

pub fn guest_task(&self) -> GuestTask<&P>

Get the offsets of the GuestTask variant’s fields.

Source

pub fn guest_thread(&self) -> GuestThread<&P>

Get the offsets of the GuestThread variant’s fields.

Source

pub fn stream(&self) -> Stream<&P>

Get the offsets of the Stream variant’s fields.

Source

pub fn future(&self) -> Future<&P>

Get the offsets of the Future variant’s fields.

Source

pub fn waitable_set(&self) -> WaitableSet<&P>

Get the offsets of the WaitableSet variant’s fields.

Source

pub fn error_context(&self) -> ErrorContext<&P>

Get the offsets of the ErrorContext variant’s fields.

Auto Trait Implementations§

§

impl<P> Freeze for VMHandleTableSlot<P>
where P: Freeze,

§

impl<P> RefUnwindSafe for VMHandleTableSlot<P>
where P: RefUnwindSafe,

§

impl<P> Send for VMHandleTableSlot<P>
where P: Send,

§

impl<P> Sync for VMHandleTableSlot<P>
where P: Sync,

§

impl<P> Unpin for VMHandleTableSlot<P>
where P: Unpin,

§

impl<P> UnsafeUnpin for VMHandleTableSlot<P>
where P: UnsafeUnpin,

§

impl<P> UnwindSafe for VMHandleTableSlot<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.