Struct lunatic::Environment [−][src]
pub struct Environment { /* fields omitted */ }
Expand description
Environments can define characteristics of processes that are spawned into it.
Implementations
Create a new environment from a configuration
Create a new environment on a remote node
Add a WebAssembly module to the environment.
Add the module that is being currently executed to the environment.
Register a process under a specific name & version in the environment.
The version must be in a correct semver format. If a process was registered under the same name and exactly same version, it will be overwritten.
pub fn unregister<T: Serialize + DeserializeOwned>(
&self,
name: &str,
version: &str
) -> Result<(), RegistryError>
pub fn unregister<T: Serialize + DeserializeOwned>(
&self,
name: &str,
version: &str
) -> Result<(), RegistryError>
Unregister a process from the environment