Home
last modified time | relevance | path

Searched refs:ResourceState (Results 1 – 2 of 2) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dhost.rs78 enum ResourceState { enum
97 fn get(&self) -> ResourceState { in get() argument
101 fn swap(&self, state: ResourceState) -> ResourceState { in swap() argument
111 impl ResourceState { impl
169 ResourceState::Borrow => false, in owned()
170 ResourceState::Taken | ResourceState::NotInTable | ResourceState::Index(_) => true, in owned()
184 ResourceState::Borrow => { in lower_to_index()
298 ResourceState::NotInTable => { in try_into_resource_any()
388 ResourceState::Borrow => "borrow", in fmt()
390 ResourceState::Taken => "taken", in fmt()
[all …]
/wasmtime-44.0.1/crates/wast/src/
H A Dspectest.rs125 struct ResourceState { in link_component_spectest() struct
130 let state = Arc::new(ResourceState::default()); in link_component_spectest()