Skip to main content

Module crypto_sync_handler

Module crypto_sync_handler 

Source
Expand description

Key management work that runs on every sync.

Structsยง

CryptoSyncData
The parts of a sync response the key management sync handler needs.
CryptoSyncHandler
[bitwarden_sync::SyncHandler] implementation of the same work, reading the key id straight off the generated sync response model.
CryptoSyncHandlerClient
Client for the key management work that runs on every sync.
CryptoSyncUserDecryption
The user decryption options a sync response carries, narrowed to the parts key management owns.

Enumsยง

CryptoSyncDataParseError
Errors returned when a sync response cannot be converted into CryptoSyncData.

Constantsยง

UNIFFI_META_CONST_BITWARDEN_CRYPTO_SYNC_HANDLER_INTERFACE_CRYPTOSYNCHANDLERCLIENT ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_CRYPTO_SYNC_HANDLER_METHOD_CRYPTOSYNCHANDLERCLIENT_ON_SYNC ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_CRYPTO_SYNC_HANDLER_RECORD_CRYPTOSYNCDATA ๐Ÿ”’
UNIFFI_META_CONST_BITWARDEN_CRYPTO_SYNC_HANDLER_RECORD_CRYPTOSYNCUSERDECRYPTION ๐Ÿ”’

Traitsยง

CryptoSyncHandlerClientExt
Extension trait to add the key management sync handler client to the main Bitwarden SDK client.

Functionsยง

handle_account_cryptographic_state ๐Ÿ”’
Persists the account cryptographic state the server reported.
handle_crypto_sync ๐Ÿ”’
Runs the key management sync work for the given sync data.
handle_user_decryption_options ๐Ÿ”’
Persists the user decryption options the server reported.