pub trait PreKeyStore: RefUnwindSafe {
// Required methods
fn load(&self, id: u32, writer: &mut dyn Write) -> Result<()>;
fn store(&self, id: u32, body: &[u8]) -> Result<(), InternalError>;
fn contains(&self, id: u32) -> bool;
fn remove(&self, id: u32) -> Result<(), InternalError>;
}Expand description
Something which can store crate::keys::PreKeys without inspecting their
contents.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".