Skip to main content

RuntimeWorkspaceService

Trait RuntimeWorkspaceService 

Source
pub trait RuntimeWorkspaceService {
    // Required methods
    fn lookup(&self, name: &str) -> Option<Value>;
    fn snapshot(&self) -> Vec<(String, Value)>;
    fn global_names(&self) -> Vec<String>;
    fn assign(&self, name: &str, value: Value) -> Result<(), RuntimeError>;
    fn clear(&self) -> Result<(), RuntimeError>;
    fn remove(&self, name: &str) -> Result<(), RuntimeError>;
}

Required Methods§

Source

fn lookup(&self, name: &str) -> Option<Value>

Source

fn snapshot(&self) -> Vec<(String, Value)>

Source

fn global_names(&self) -> Vec<String>

Source

fn assign(&self, name: &str, value: Value) -> Result<(), RuntimeError>

Source

fn clear(&self) -> Result<(), RuntimeError>

Source

fn remove(&self, name: &str) -> Result<(), RuntimeError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§