Searched refs:TypedResource (Results 1 – 5 of 5) sorted by relevance
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/component/ |
| H A D | resources.rs | 82 pub enum TypedResource { enum 106 impl TypedResource { impl 177 fn table_for_resource(&mut self, resource: &TypedResource) -> &mut HandleTable { in table_for_resource() 179 TypedResource::Host(_) => self.host_table, in table_for_resource() 180 TypedResource::Component { ty, .. } => { in table_for_resource() 200 pub fn resource_new(&mut self, resource: TypedResource) -> Result<u32> { in resource_new() 244 pub fn resource_lower_own(&mut self, resource: TypedResource) -> Result<u32> { in resource_lower_own() 294 pub fn resource_lower_borrow(&mut self, resource: TypedResource) -> Result<u32> { in resource_lower_borrow()
|
| H A D | handle_table.rs | 1 use super::{TypedResource, TypedResourceIndex}; 60 resource: TypedResource, 70 resource: TypedResource, 188 pub fn resource_own_insert(&mut self, resource: TypedResource) -> Result<u32> { in resource_own_insert() 198 pub fn resource_borrow_insert(&mut self, resource: TypedResource, scope: u32) -> Result<u32> { in resource_borrow_insert() argument
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/ |
| H A D | host_tables.rs | 25 use crate::runtime::vm::component::{ResourceTables, TypedResource, TypedResourceIndex}; 147 let idx = self.tables.resource_lower_own(TypedResource::Host(rep))?; in host_resource_lower_own() 155 .resource_lower_borrow(TypedResource::Host(rep))?; in host_resource_lower_borrow() 265 .resource_lower_own(TypedResource::Component { ty, rep }) in guest_resource_lower_own() 283 .resource_lower_borrow(TypedResource::Component { ty, rep }) in guest_resource_lower_borrow()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | instance.rs | 12 use crate::runtime::vm::component::{ComponentInstance, TypedResource, TypedResourceIndex}; 385 .resource_new(TypedResource::Component { ty, rep }) in resource_new32() 422 tables.resource_lower_own(TypedResource::Component { ty: dst, rep }) in resource_transfer_own() 446 tables.resource_lower_borrow(TypedResource::Component { ty: dst, rep }) in resource_transfer_borrow()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | component.rs | 47 pub use self::resources::{CallContext, ResourceTables, TypedResource, TypedResourceIndex};
|