Home
last modified time | relevance | path

Searched refs:ResourceDynamic (Results 1 – 5 of 5) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dhost_dynamic.rs66 pub struct ResourceDynamic(HostResource<Dynamic, u32>); struct
80 impl ResourceDynamic { implementation
87 pub fn new_own(rep: u32, ty: u32) -> ResourceDynamic { in new_own() argument
88 ResourceDynamic(HostResource::new_own(rep, ty)) in new_own()
99 ResourceDynamic(HostResource::new_borrow(rep, ty)) in new_borrow()
146 unsafe impl ComponentType for ResourceDynamic { implementation
155 unsafe impl Lower for ResourceDynamic { implementation
175 unsafe impl Lift for ResourceDynamic { implementation
182 Ok(ResourceDynamic(host_resource)) in linear_lift_from_flat()
191 Ok(ResourceDynamic(host_resource)) in linear_lift_from_memory()
[all …]
H A Dany.rs16 use crate::component::{ComponentType, Lift, Lower, Resource, ResourceDynamic, ResourceType};
88 pub fn try_into_resource_dynamic(self, store: impl AsContextMut) -> Result<ResourceDynamic> { in try_into_resource_dynamic() argument
89 ResourceDynamic::try_from_resource_any(self, store) in try_into_resource_dynamic()
/wasmtime-44.0.1/crates/c-api/src/component/
H A Dval.rs9 use wasmtime::component::{ResourceAny, ResourceDynamic, Val};
440 resource: ResourceDynamic,
445 fn resource(&self) -> ResourceDynamic { in resource() argument
449 ResourceDynamic::new_own(rep, ty) in resource()
451 ResourceDynamic::new_borrow(rep, ty) in resource()
464 ResourceDynamic::new_own(rep, ty) in wasmtime_component_resource_host_new()
466 ResourceDynamic::new_borrow(rep, ty) in wasmtime_component_resource_host_new()
/wasmtime-44.0.1/tests/all/component_model/
H A Dresources.rs1571 let r = ResourceDynamic::new_own(1, 2); in resource_dynamic()
1613 let drop_t = instance.get_typed_func::<(ResourceDynamic,), ()>(&mut store, "drop-t")?; in resource_dynamic()
1614 let drop_u = instance.get_typed_func::<(ResourceDynamic,), ()>(&mut store, "drop-u")?; in resource_dynamic()
1616 drop_t.call(&mut store, (ResourceDynamic::new_own(1, 2),))?; in resource_dynamic()
1618 drop_u.call(&mut store, (ResourceDynamic::new_own(2, 3),))?; in resource_dynamic()
1622 .call(&mut store, (ResourceDynamic::new_own(1, 1),)) in resource_dynamic()
1653 instance.get_typed_func::<(ResourceDynamic,), ()>(&mut store, "drop-t")?; in resource_dynamic_not_static()
1669 .get_typed_func::<(ResourceDynamic,), ()>(&mut store, "drop-t") in resource_dynamic_not_static()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dmod.rs134 pub use self::resources::{Resource, ResourceAny, ResourceDynamic};