pub struct SQLTransaction<RM>where
RM: DatabasePool + 'static,{ /* private fields */ }Expand description
SQL Transaction Writer
Trait Implementations§
Source§impl<RM> MintAuthTransaction<Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> MintAuthTransaction<Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn set_active_keyset<'life0, 'async_trait>(
&'life0 mut self,
id: Id,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_active_keyset<'life0, 'async_trait>(
&'life0 mut self,
id: Id,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add Active Keyset
Source§fn add_keyset_info<'life0, 'async_trait>(
&'life0 mut self,
keyset: MintKeySetInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_keyset_info<'life0, 'async_trait>(
&'life0 mut self,
keyset: MintKeySetInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add
MintKeySetInfoSource§fn add_proof<'life0, 'async_trait>(
&'life0 mut self,
proof: AuthProof,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_proof<'life0, 'async_trait>(
&'life0 mut self,
proof: AuthProof,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add spent
AuthProofSource§fn update_proof_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
y: &'life1 PublicKey,
proofs_state: State,
) -> Pin<Box<dyn Future<Output = Result<Option<State>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_proof_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
y: &'life1 PublicKey,
proofs_state: State,
) -> Pin<Box<dyn Future<Output = Result<Option<State>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update
AuthProofs stateSource§fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
blind_signatures: &'life2 [BlindSignature],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
blind_signatures: &'life2 [BlindSignature],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Add
BlindSignatureSource§fn add_protected_endpoints<'life0, 'async_trait>(
&'life0 mut self,
protected_endpoints: HashMap<ProtectedEndpoint, AuthRequired>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_protected_endpoints<'life0, 'async_trait>(
&'life0 mut self,
protected_endpoints: HashMap<ProtectedEndpoint, AuthRequired>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add protected endpoints
Source§impl<RM> DbTransactionFinalizer for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> DbTransactionFinalizer for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§impl<RM> KVStoreTransaction<'_, Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> KVStoreTransaction<'_, Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Read value from key-value store
Source§fn kv_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
value: &'life4 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn kv_write<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
value: &'life4 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Write value to key-value store
Source§fn kv_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn kv_remove<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Remove value from key-value store
Source§fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List keys in a namespace
Source§impl<RM> KeysDatabaseTransaction<'_, Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> KeysDatabaseTransaction<'_, Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn add_keyset_info<'life0, 'async_trait>(
&'life0 mut self,
keyset: MintKeySetInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_keyset_info<'life0, 'async_trait>(
&'life0 mut self,
keyset: MintKeySetInfo,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add
MintKeySetInfoSource§impl<RM> ProofsTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> ProofsTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn add_proofs<'life0, 'life1, 'async_trait>(
&'life0 mut self,
proofs: Proofs,
quote_id: Option<QuoteId>,
operation: &'life1 Operation,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_proofs<'life0, 'life1, 'async_trait>(
&'life0 mut self,
proofs: Proofs,
quote_id: Option<QuoteId>,
operation: &'life1 Operation,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update_proofs_states<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ys: &'life1 [PublicKey],
new_state: State,
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<State>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_proofs_states<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ys: &'life1 [PublicKey],
new_state: State,
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<State>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Updates the proofs to a given states and return the previous states
Source§impl<RM> QuotesTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> QuotesTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn add_melt_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
inputs_amount: Amount,
inputs_fee: Amount,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_melt_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
inputs_amount: Amount,
inputs_fee: Amount,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Add melt_request with quote_id, inputs_amount, and inputs_fee
Source§fn add_blinded_messages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
quote_id: Option<&'life1 QuoteId>,
blinded_messages: &'life2 [BlindedMessage],
operation: &'life3 Operation,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn add_blinded_messages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
quote_id: Option<&'life1 QuoteId>,
blinded_messages: &'life2 [BlindedMessage],
operation: &'life3 Operation,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Add blinded_messages for a quote_id
Source§fn delete_blinded_messages<'life0, 'life1, 'async_trait>(
&'life0 mut self,
blinded_secrets: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_blinded_messages<'life0, 'life1, 'async_trait>(
&'life0 mut self,
blinded_secrets: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete blinded_messages by their blinded secrets
Source§fn get_melt_request_and_blinded_messages<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MeltRequestInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_melt_request_and_blinded_messages<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MeltRequestInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get melt_request and associated blinded_messages by quote_id
Source§fn delete_melt_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_melt_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete melt_request and associated blinded_messages by quote_id
Source§fn increment_mint_quote_amount_paid<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
amount_paid: Amount,
payment_id: String,
) -> Pin<Box<dyn Future<Output = Result<Amount, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn increment_mint_quote_amount_paid<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
amount_paid: Amount,
payment_id: String,
) -> Pin<Box<dyn Future<Output = Result<Amount, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Increment amount paid
MintMintQuoteSource§fn increment_mint_quote_amount_issued<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
amount_issued: Amount,
) -> Pin<Box<dyn Future<Output = Result<Amount, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn increment_mint_quote_amount_issued<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
amount_issued: Amount,
) -> Pin<Box<dyn Future<Output = Result<Amount, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Increment amount paid
MintMintQuoteSource§fn add_mint_quote<'life0, 'async_trait>(
&'life0 mut self,
quote: MintQuote,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_mint_quote<'life0, 'async_trait>(
&'life0 mut self,
quote: MintQuote,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add
MintMintQuoteSource§fn add_melt_quote<'life0, 'async_trait>(
&'life0 mut self,
quote: MeltQuote,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_melt_quote<'life0, 'async_trait>(
&'life0 mut self,
quote: MeltQuote,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add
mint::MeltQuoteSource§fn update_melt_quote_request_lookup_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
new_request_lookup_id: &'life2 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_melt_quote_request_lookup_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
new_request_lookup_id: &'life2 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Updates the request lookup id for a melt quote
Source§fn update_melt_quote_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
state: MeltQuoteState,
payment_proof: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(MeltQuoteState, MeltQuote), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_melt_quote_state<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
state: MeltQuoteState,
payment_proof: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(MeltQuoteState, MeltQuote), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update
mint::MeltQuote state Read moreSource§fn get_mint_quote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
MintMintQuote and lock it for update in this transactionSource§fn get_melt_quote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MeltQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_melt_quote<'life0, 'life1, 'async_trait>(
&'life0 mut self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MeltQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
mint::MeltQuote and lock it for update in this transactionSource§fn get_mint_quote_by_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote_by_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all
MintMintQuotes and lock it for update in this transactionSource§fn get_mint_quote_by_request_lookup_id<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request_lookup_id: &'life1 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote_by_request_lookup_id<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request_lookup_id: &'life1 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all
MintMintQuotesSource§impl<RM> SignaturesTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> SignaturesTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
blind_signatures: &'life2 [BlindSignature],
quote_id: Option<QuoteId>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
blind_signatures: &'life2 [BlindSignature],
quote_id: Option<QuoteId>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Add
BlindSignatureSource§fn get_blind_signatures<'life0, 'life1, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<BlindSignature>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blind_signatures<'life0, 'life1, 'async_trait>(
&'life0 mut self,
blinded_messages: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<BlindSignature>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
BlindSignaturesSource§impl<RM> SagaTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
impl<RM> SagaTransaction<'_> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Source§fn get_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
operation_id: &'life1 Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Saga>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
operation_id: &'life1 Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Saga>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get saga by operation_id
Source§fn add_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
saga: &'life1 Saga,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
saga: &'life1 Saga,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Add saga
Source§fn update_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
operation_id: &'life1 Uuid,
new_state: SagaStateEnum,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_saga<'life0, 'life1, 'async_trait>(
&'life0 mut self,
operation_id: &'life1 Uuid,
new_state: SagaStateEnum,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update saga state (only updates state and updated_at fields)
impl<RM> Transaction<'_, Error> for SQLTransaction<RM>where
RM: DatabasePool + 'static,
Auto Trait Implementations§
impl<RM> Freeze for SQLTransaction<RM>
impl<RM> RefUnwindSafe for SQLTransaction<RM>
impl<RM> Send for SQLTransaction<RM>
impl<RM> Sync for SQLTransaction<RM>
impl<RM> Unpin for SQLTransaction<RM>
impl<RM> UnwindSafe for SQLTransaction<RM>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more