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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".