pub struct Storage<SK, SIG> where
    SK: SecretKey,
    SIG: Signature
{ /* private fields */ }
Expand description

In-Memory key storage.

Trait Implementations

Formats the value using the given formatter. Read more

Get an identity IdentityKeyPair.

Save a known identity.

Check if an identity is known.

Get a OnetimeKeyPair.

Save a OnetimeKeyPair.

Forget a OnetimeKeyPair.

Check if there are keys available.

Provide a single onetime key. Returns None if storage is empty.

Get a prekey PreKeyPair.

Save a known identity.

Check if a prekey is known.

Get a signature for a key.

Save a signature.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.