Module context

Source
Expand description

Traits and types for managing script contexts.

Structs§

ContextAssigner
A strategy for assigning contexts to new and existing but re-loaded scripts as well as for managing old contexts
ContextBuilder
A strategy for loading and reloading contexts
ContextLoadingSettings
Settings concerning the creation and assignment of script contexts as well as their initialization.
ScriptContexts
Stores script state for a scripting plugin. Scripts are identified by their ScriptId, while contexts are identified by their ContextId.

Traits§

Context
A trait that all script contexts must implement.

Type Aliases§

ContextId
The type of a context id
ContextInitializer
Initializer run once after creating a context but before executing it for the first time as well as after re-loading the script
ContextLoadFn
A strategy for loading contexts
ContextPreHandlingInitializer
Initializer run every time before executing or loading/re-loading a script
ContextReloadFn
A strategy for reloading contexts