pub struct PluggableRuntimeImplementation {
    pub bus: Box<dyn VirtualBus + Sync>,
    pub networking: Box<dyn VirtualNetworking + Sync>,
    pub thread_id_seed: AtomicU32,
}

Fields§

§bus: Box<dyn VirtualBus + Sync>§networking: Box<dyn VirtualNetworking + Sync>§thread_id_seed: AtomicU32

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
For WASI runtimes that support it they can implement a message BUS implementation which allows runtimes to pass serialized messages between each other similar to RPC’s. BUS implementation can be implemented that communicate across runtimes thus creating a distributed computing architecture.
Provides access to all the networking related functions such as sockets. By default networking is not implemented.
Generates a new thread ID
Gets the TTY state
Sets the TTY state
Spawns a new thread by invoking the
Returns the amount of parallelism that is possible on this platform
Invokes whenever a WASM thread goes idle. In some runtimes (like singlethreaded execution environments) they will need to do asynchronous work whenever the main thread goes idle and this is the place to hook for that.
Gets the current process ID

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more