Trait DurableStateBackend
Source pub trait DurableStateBackend {
// Required methods
fn backend_name(&self) -> &'static str;
fn ensure_scope(&self, scope: &BackendScope) -> Result<(), VmError>;
fn resume_scope(&self, scope: &BackendScope) -> Result<(), VmError>;
fn read(
&self,
scope: &BackendScope,
key: &str,
) -> Result<Option<String>, VmError>;
fn write(
&self,
scope: &BackendScope,
key: &str,
content: &str,
options: &BackendWriteOptions,
) -> Result<BackendWriteOutcome, VmError>;
fn delete(&self, scope: &BackendScope, key: &str) -> Result<(), VmError>;
fn list(&self, scope: &BackendScope) -> Result<Vec<String>, VmError>;
}