pub enum Intrinsic {
Show 47 variants
JsHelper(JsHelperIntrinsic),
WebIdl(WebIdlIntrinsic),
Conversion(ConversionIntrinsic),
String(StringIntrinsic),
Resource(ResourceIntrinsic),
ErrCtx(ErrCtxIntrinsic),
AsyncTask(AsyncTaskIntrinsic),
Waitable(WaitableIntrinsic),
Lift(LiftIntrinsic),
AsyncStream(AsyncStreamIntrinsic),
AsyncFuture(AsyncFutureIntrinsic),
Component(ComponentIntrinsic),
PromiseWithResolversPolyfill,
DebugLog,
GlobalAsyncDeterminism,
CoinFlip,
ConstantI32Max,
ConstantI32Min,
TypeCheckValidI32,
Base64Compile,
ClampGuest,
FetchCompile,
SymbolCabiDispose,
SymbolCabiLower,
SymbolResourceHandle,
SymbolResourceRep,
SymbolDispose,
ScopeId,
DefinedResourceTables,
HandleTables,
FinalizationRegistryCreate,
ComponentError,
GetErrorPayload,
GetErrorPayloadString,
ManagedBufferClass,
BufferManagerClass,
GlobalBufferManager,
RepTableClass,
AwaitableClass,
AsyncEventCodeEnum,
WriteAsyncEventToMemory,
IsLE,
ThrowInvalidBool,
ThrowUninitialized,
HasOwnProperty,
InstantiateCore,
IsBorrowedType,
}
Expand description
List of all intrinsics that are used by these
These intrinsics refer to JS code that is included in order to make transpiled WebAssembly components and their imports/exports functional in the relevant JS context.
Variants§
JsHelper(JsHelperIntrinsic)
WebIdl(WebIdlIntrinsic)
Conversion(ConversionIntrinsic)
String(StringIntrinsic)
Resource(ResourceIntrinsic)
ErrCtx(ErrCtxIntrinsic)
AsyncTask(AsyncTaskIntrinsic)
Waitable(WaitableIntrinsic)
Lift(LiftIntrinsic)
AsyncStream(AsyncStreamIntrinsic)
AsyncFuture(AsyncFutureIntrinsic)
Component(ComponentIntrinsic)
PromiseWithResolversPolyfill
DebugLog
Enable debug logging
GlobalAsyncDeterminism
Global setting for determinism (used in async)
CoinFlip
Randomly produce a boolean true/false
ConstantI32Max
ConstantI32Min
TypeCheckValidI32
Base64Compile
ClampGuest
FetchCompile
SymbolCabiDispose
SymbolCabiLower
SymbolResourceHandle
SymbolResourceRep
SymbolDispose
ScopeId
DefinedResourceTables
HandleTables
FinalizationRegistryCreate
ComponentError
GetErrorPayload
GetErrorPayloadString
ManagedBufferClass
Class that manages (and synchronizes) writes to managed buffers
BufferManagerClass
Buffer manager that is used to synchronize component writes
GlobalBufferManager
Global for an instantiated buffer manager singleton
RepTableClass
Reusable table structure for holding canonical ABI objects by their representation/identifier of (e.g. resources, waitables, etc)
Representations of objects stored in one of these tables is a u32 (0 is expected to be an invalid index).
AwaitableClass
Class that wraps Promise
s and other things that can be awaited so that we can
keep track of whether resolutions have happened
AsyncEventCodeEnum
Event codes used for async, as a JS enum
WriteAsyncEventToMemory
Write an async event (e.g. result of waitable-set.wait) to linear memory
IsLE
ThrowInvalidBool
ThrowUninitialized
HasOwnProperty
InstantiateCore
IsBorrowedType
JS helper function for check whether a given type is borrowed
Generally the only kind of type that can be borrowed is a resource handle, so this helper checks for that.
Implementations§
Source§impl Intrinsic
impl Intrinsic
pub fn get_global_names() -> impl IntoIterator<Item = &'static str>
pub fn name(&self) -> &'static str
Trait Implementations§
Source§impl Ord for Intrinsic
impl Ord for Intrinsic
Source§impl PartialOrd for Intrinsic
impl PartialOrd for Intrinsic
impl Copy for Intrinsic
impl Eq for Intrinsic
impl StructuralPartialEq for Intrinsic
Auto Trait Implementations§
impl Freeze for Intrinsic
impl RefUnwindSafe for Intrinsic
impl Send for Intrinsic
impl Sync for Intrinsic
impl Unpin for Intrinsic
impl UnwindSafe for Intrinsic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key
and return true
if they are equal.