async fn save_outgoing_key_info(
        &self,
        id: Uuid,
        info: OugoingKeyInfo,
    ) -> Result<(), CryptoStoreError> {
        // TODO we'll want to use a transaction to store those atomically.
        // To allow this we'll need to rework our cryptostore trait to return
        // a transaction trait and the transaction trait will have the save_X
        // methods.
        let id_string = id.to_string();
        self.store.save_object(&id_string, &info).await?;
        self.store.save_object(&info.info.encode(), &id).await?;

        Ok(())
    }
/// Save an outgoing key info.
Save an outgoing key info.
Save an outgoing key info .
async fn save_outgoing_key_info(
        &self,
        id: Uuid,
        info: OugoingKeyInfo,
    ) -> Result<(), CryptoStoreError> {
        // TODO we'll want to use a transaction to store those atomically.
        // To allow this we'll need to rework our cryptostore trait to return
        // a transaction trait and the transaction trait will have the save_X
        // methods.
        let id_string = id.to_string();
        self.store.save_object(&id_string, &info).await?;
        self.store.save_object(&info.info.encode(), &id).await?;
        Ok(())
    }
async fn save_outgoing_key_info ( & self , id : Uuid , info : OugoingKeyInfo , ) -> Result < ( ) , CryptoStoreError > { // TODO we'll want to use a transaction to store those atomically. // To allow this we'll need to rework our cryptostore trait to return // a transaction trait and the transaction trait will have the save_X // methods. let id_string = id . to_string ( ) ; self . store . save_object ( & id_string , & info ) . await ? ; self . store . save_object ( & info . info . encode ( ) , & id ) . await ? ; Ok ( ( ) ) }
Save an outgoing key info.
Save an outgoing key info .
&self
id
Uuid
info
OugoingKeyInfo
&self
id
Uuid
info
OugoingKeyInfo