Struct wasmtime_environ::component::TypeResourceTable
source · pub struct TypeResourceTable {
pub ty: ResourceIndex,
pub instance: RuntimeComponentInstanceIndex,
}
Expand description
Metadata about a resource table added to a component.
Fields§
§ty: ResourceIndex
The original resource that this table contains.
This is used when destroying resources within this table since this original definition will know how to execute destructors.
instance: RuntimeComponentInstanceIndex
The component instance that contains this resource table.
Trait Implementations§
source§impl Clone for TypeResourceTable
impl Clone for TypeResourceTable
source§fn clone(&self) -> TypeResourceTable
fn clone(&self) -> TypeResourceTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeResourceTable
impl Debug for TypeResourceTable
source§impl<'de> Deserialize<'de> for TypeResourceTable
impl<'de> Deserialize<'de> for TypeResourceTable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TypeResourceTable
impl Hash for TypeResourceTable
source§impl PartialEq for TypeResourceTable
impl PartialEq for TypeResourceTable
source§impl Serialize for TypeResourceTable
impl Serialize for TypeResourceTable
impl Eq for TypeResourceTable
impl StructuralPartialEq for TypeResourceTable
Auto Trait Implementations§
impl Freeze for TypeResourceTable
impl RefUnwindSafe for TypeResourceTable
impl Send for TypeResourceTable
impl Sync for TypeResourceTable
impl Unpin for TypeResourceTable
impl UnwindSafe for TypeResourceTable
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.