Skip to main content

Module core

Module core 

Source

Re-exports§

pub use crate::kernel::Form;
pub use crate::task::LocalPromiseProvider;
pub use crate::task::Promise;
pub use crate::task::PromiseProvider;
pub use crate::task::PromiseRejection;
pub use crate::task::PromiseState;
pub use crate::file::NativeFileProvider;
pub use crate::file::CopyOptions;
pub use crate::file::DeleteOptions;
pub use crate::file::FileEntry;
pub use crate::file::FileError;
pub use crate::file::FileProvider;
pub use crate::file::FileType;
pub use crate::file::MemoryFileProvider;
pub use crate::file::MkdirOptions;
pub use crate::file::MoveOptions;
pub use crate::file::TempDirectoryOptions;
pub use crate::file::TempFileOptions;
pub use crate::file::UnsupportedFileProvider;
pub use crate::file::WriteMode;
pub use crate::file::WriteOptions;

Structs§

Coroutine
A re-entrant coroutine implemented with the fiber/CPS evaluator.
EvalFiber
ExceptionInfo
ExceptionProvenance
ExceptionSite
ExtensionRegistry
ExtensionValue
Function
GuestProtocol
IteratorState
LoopbackSocketProvider
MutableType
MutableValue
NamedDeclaration
Canonical declaration data shared by a named type, its constructors, and the schema exposed through the type Var. The runtime keeps this beside the type object rather than registering a second schema-owned identity.
NamedField
One field in a named value declaration. The runtime only needs the name for storage, while the source declaration keeps the schema and optional field properties beside it until the type Var is published.
NativeDeclaration
NativeOperationDeclaration
NativeSocketProvider
NativeType
PackageCatalog
ProtocolRegistry
ProviderCapabilities
ProviderRegistry
ResultValue
RuntimeAtom
RuntimeSchema
RuntimeStream
StructType
StructValue
TraceFrame
A callable frame collected while an evaluation boundary has tracing enabled. Keep this structured until a presentation boundary chooses how to render it: editor clients need the namespace and source site separately from the human-readable stack label.
UnsupportedSocketProvider

Enums§

CoroutineState
State of a portable coroutine value.
EvalFiberState
IntrinsicOp
Value-level primitive operations shared by the tree-walking evaluator and the experimental bytecode VM (issue #195, notes/rust-bytecode-vm.md). All arithmetic and comparison semantics live here exactly once.
MutableCollection
NamespaceResource
NativeAvailability
ResultStatus
SocketError
SocketEvent
SocketServerEvent
Step
Value

Constants§

NATIVE_DECLARATIONS

Traits§

ExtensionProvider
SocketProvider

Functions§

apply_global_aliases
apply_global_imports
attach_exception_sites
Carries parser locations through the evaluator’s plain Form function bodies without inventing callable marker symbols. Direct-native callers compile the original SpannedForm instead; this adapter is only used at evaluator boundaries where a function body must survive as a Form.
builtin_protocol_method_values
builtin_protocol_namespace
call_host_value
Invokes the active host capability provider with already-evaluated VM values. This is the bytecode boundary for std.native.Host/call; the VM remains unaware of timers, sockets, or any other concrete host operation.
completion_symbols
eval
eval_text
eval_text_traced
eval_traced
eval_value_text
eval_value_text_traced
foundation_protocol_values
install_foundation_intrinsics
Installs the small language-level callable substrate needed while loading std.foundation. These are runtime primitives, not a second public native catalog: the Foundation source can replace or wrap them with ordinary HAL Vars, and every installed Var carries RuntimePrimitive provenance.
invoke_callable
Invokes a runtime callable with already-decoded values.
iterator_from_values
map_entries
Returns cloned entries for every map-like runtime representation. Embedding hosts should use this instead of depending on a concrete persistent-map implementation.
minimal_namespace_registry
native_declarations
native_function
Builds a fixed-arity native callable for embedding-owned namespaces.
native_manifest
Returns the closed native declaration surface in a stable, comparison-friendly form.
native_type_function_value
Creates a callable exported by a std.native.* namespace.
native_type_values
portable_type_name
protocol_manifest
Returns the closed annotated protocol surface in a stable, comparison-friendly form.
read_edn
receiver_category
refresh_namespace_environment
Rebuilds qualified and aliased bindings without changing local bindings.
require_namespace
save_namespace_environment
Saves all unqualified evaluator bindings into the registry current namespace.
select_namespace_environment
Saves the current namespace, selects name, and loads its bindings.
set_values
Returns cloned values for every persistent set-like runtime representation.
stream_close_value
Closes a native Stream owned by the current runtime worker.
stream_next_value
Pulls one item from a native Stream without exposing its representation to an embedder.
stream_value
with_capability_providers
Runs an evaluation through the selected runtime capability providers.
with_definition_origin
with_host_calls
Installs the explicit host-call boundary for one evaluation.
with_macros
with_namespace_registry
Runs an evaluation with a namespace registry available to namespace builtins.
with_namespace_source
Runs an evaluation with a source provider used to satisfy require loads.
with_package_catalog
with_promise_provider
Runs an evaluation through the selected runtime promise provider.
with_protocols
Runs an evaluation with a registry available to protocol dispatch.
with_stack_trace_snapshot
Runs an evaluation with trace collection and returns the frames before the boundary resets its thread-local state. The textual error contract remains unchanged; embedding hosts can use this companion to build structured diagnostics without parsing rendered stack lines.
with_thrown_value_capture
Captures the uncaught exception value from one evaluator boundary without changing the string error API used by the runtime. The previous dynamic value is restored so a diagnostic request cannot leak exception state into a later evaluation in the same broker session.

Type Aliases§

KernelProvider
NativeProvider
ProtocolFn
ProtocolSupports
SocketCallback
SocketHandle
SocketServerCallback