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::PreKey
s without inspecting their
contents.