Skip to main content

Store

Trait Store 

Source
trait Store {
    // Required methods
    fn get(&self, name: &str) -> Result<Option<Vec<u8>>, SyncError>;
    fn set(&self, name: &str, value: &[u8]) -> Result<(), SyncError>;
    fn forget(&self, name: &str) -> Result<(), SyncError>;
}
Expand description

Where grants are kept: the system keyring, or, in tests, memory.

Required Methods§

Source

fn get(&self, name: &str) -> Result<Option<Vec<u8>>, SyncError>

Source

fn set(&self, name: &str, value: &[u8]) -> Result<(), SyncError>

Source

fn forget(&self, name: &str) -> Result<(), SyncError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§