Struct matrix_sdk_crypto::olm::ReadOnlyAccount [−][src]
pub struct ReadOnlyAccount { /* fields omitted */ }Expand description
Account holding identity keys for which sessions can be created.
An account is the central identity for encrypted communication between two devices.
Implementations
Create a fresh new account, this will generate the identity key-pair.
Get the public parts of the identity keys for the account.
Get the currently known uploaded key count.
Has the account been shared with the server.
Sign the given string using the accounts signing key.
Returns the signature as a base64 encoded string.
Store the account as a base64 encoded string.
Arguments
pickle_mode- The mode that was used to pickle the account, either an unencrypted mode or an encrypted using passphrase.
pub fn from_pickle(
pickle: PickledAccount,
pickle_mode: PicklingMode
) -> Result<Self, OlmAccountError>
pub fn from_pickle(
pickle: PickledAccount,
pickle_mode: PicklingMode
) -> Result<Self, OlmAccountError>
Restore an account from a previously pickled one.
Arguments
-
pickle- The pickled version of the Account. -
pickle_mode- The mode that was used to pickle the account, either an unencrypted mode or an encrypted using passphrase.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ReadOnlyAccount
impl Send for ReadOnlyAccount
impl Sync for ReadOnlyAccount
impl Unpin for ReadOnlyAccount
impl !UnwindSafe for ReadOnlyAccount
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more