pub trait ContextManager: Send + Sync {
// Required methods
fn set_string(&self, key: &str, value: String);
fn get_string(&self, key: &str) -> Option<String>;
fn remove_string(&self, key: &str) -> bool;
fn clear_all(&self);
}Expand description
Context manager trait for different context implementations
This trait provides a common interface for different types of context storage.
Required Methods§
Sourcefn set_string(&self, key: &str, value: String)
fn set_string(&self, key: &str, value: String)
Set a string value in the context
Sourcefn get_string(&self, key: &str) -> Option<String>
fn get_string(&self, key: &str) -> Option<String>
Get a string value from the context
Sourcefn remove_string(&self, key: &str) -> bool
fn remove_string(&self, key: &str) -> bool
Remove a string value from the context