pub async fn register_encryption_box(
    context: std::sync::Arc<ClientContext>,
    encryption_box: impl EncryptionBox + Send + Sync + 'static,
) -> ClientResult<RegisteredEncryptionBox> {
    let id = context.get_next_id();
    context.boxes.encryption_boxes.insert(id, Box::new(encryption_box));

    Ok(RegisteredEncryptionBox {
        handle: EncryptionBoxHandle(id),
    })
}
/// Registers an application implemented encryption box.

Registers an application implemented encryption box.
Registers an application implemented encryption box .
pub async fn register_encryption_box(
    context: std::sync::Arc<ClientContext>,
    encryption_box: impl EncryptionBox + Send + Sync + 'static,
) -> ClientResult<RegisteredEncryptionBox> {
    let id = context.get_next_id();
    context.boxes.encryption_boxes.insert(id, Box::new(encryption_box));
    Ok(RegisteredEncryptionBox {
        handle: EncryptionBoxHandle(id),
    })
}
pub async fn register_encryption_box ( context : std :: sync :: Arc < ClientContext > , encryption_box : impl EncryptionBox + Send + Sync + ' static , ) -> ClientResult < RegisteredEncryptionBox > { let id = context . get_next_id ( ) ; context . boxes . encryption_boxes . insert ( id , Box :: new ( encryption_box ) ) ; Ok ( RegisteredEncryptionBox { handle : EncryptionBoxHandle ( id ) , } ) }
Registers an application implemented encryption box.
Registers an application implemented encryption box .
context
std::sync::Arc<ClientContext>
encryption_box
impl EncryptionBox + Send + Sync + 'static