Trait SignedPreKeyStore

Source
pub trait SignedPreKeyStore: 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 signed pre-keys without inspecting their contents.

Required Methods§

Source

fn load(&self, id: u32, writer: &mut dyn Write) -> Result<()>

Load a signed pre-key.

Source

fn store(&self, id: u32, body: &[u8]) -> Result<(), InternalError>

Store a signed pre-key.

Source

fn contains(&self, id: u32) -> bool

Is the signed pre-key with this ID present in the store?

Source

fn remove(&self, id: u32) -> Result<(), InternalError>

Remove a signed pre-key from the store.

Implementors§