pub enum KnownGlobal {
Defined(KnownEntity<DefinedGlobalIndex>),
ComponentInstanceFlags(RuntimeComponentInstanceIndex),
TaskMayBlock,
}Expand description
A statically-known import of a core wasm global.
Variants§
Defined(KnownEntity<DefinedGlobalIndex>)
A global defined by a module in the same component.
ComponentInstanceFlags(RuntimeComponentInstanceIndex)
A component instance’s runtime-managed flags, such as its may-leave
flag.
TaskMayBlock
The runtime-managed flag recording whether the currently-executing task may perform blocking operations.
Trait Implementations§
Source§impl Clone for KnownGlobal
impl Clone for KnownGlobal
Source§fn clone(&self) -> KnownGlobal
fn clone(&self) -> KnownGlobal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KnownGlobal
Source§impl Debug for KnownGlobal
impl Debug for KnownGlobal
impl Eq for KnownGlobal
Source§impl Hash for KnownGlobal
impl Hash for KnownGlobal
Source§impl PartialEq for KnownGlobal
impl PartialEq for KnownGlobal
impl StructuralPartialEq for KnownGlobal
Auto Trait Implementations§
impl Freeze for KnownGlobal
impl RefUnwindSafe for KnownGlobal
impl Send for KnownGlobal
impl Sync for KnownGlobal
impl Unpin for KnownGlobal
impl UnsafeUnpin for KnownGlobal
impl UnwindSafe for KnownGlobal
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more