pub struct StorageAdaptorWrapper<S: StorageAdaptor> { /* private fields */ }Implementations§
Source§impl<S: StorageAdaptor> StorageAdaptorWrapper<S>
impl<S: StorageAdaptor> StorageAdaptorWrapper<S>
Trait Implementations§
Source§impl<S: StorageAdaptor> BarkPersister for StorageAdaptorWrapper<S>
Blanket implementation of BarkPersister for any type implementing StorageAdaptor.
impl<S: StorageAdaptor> BarkPersister for StorageAdaptorWrapper<S>
Blanket implementation of BarkPersister for any type implementing StorageAdaptor.
Source§fn init_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
properties: &'life1 WalletProperties,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn init_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
properties: &'life1 WalletProperties,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Initialize a wallet in storage with the provided properties. Read more
Source§fn read_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<WalletProperties>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<WalletProperties>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read wallet properties from storage. Read more
Source§fn set_server_pubkey<'life0, 'async_trait>(
&'life0 self,
server_pubkey: PublicKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_server_pubkey<'life0, 'async_trait>(
&'life0 self,
server_pubkey: PublicKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set the server public key in wallet properties. Read more
Source§fn initialize_bdk_wallet<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChangeSet>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize_bdk_wallet<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ChangeSet>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the onchain BDK wallet and return any previously stored ChangeSet. Read more
Source§fn store_bdk_wallet_changeset<'life0, 'life1, 'async_trait>(
&'life0 self,
changeset: &'life1 ChangeSet,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_bdk_wallet_changeset<'life0, 'life1, 'async_trait>(
&'life0 self,
changeset: &'life1 ChangeSet,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist an incremental BDK ChangeSet. Read more
Source§fn create_new_movement<'life0, 'life1, 'async_trait>(
&'life0 self,
status: MovementStatus,
subsystem: &'life1 MovementSubsystem,
time: DateTime<Local>,
) -> Pin<Box<dyn Future<Output = Result<MovementId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_new_movement<'life0, 'life1, 'async_trait>(
&'life0 self,
status: MovementStatus,
subsystem: &'life1 MovementSubsystem,
time: DateTime<Local>,
) -> Pin<Box<dyn Future<Output = Result<MovementId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates a new movement in the given state, ready to be updated. Read more
Source§fn update_movement<'life0, 'life1, 'async_trait>(
&'life0 self,
movement: &'life1 Movement,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_movement<'life0, 'life1, 'async_trait>(
&'life0 self,
movement: &'life1 Movement,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persists the given movement state. Read more
Source§fn get_movement_by_id<'life0, 'async_trait>(
&'life0 self,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<Movement>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_movement_by_id<'life0, 'async_trait>(
&'life0 self,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<Movement>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the movement with the given MovementId. Read more
Source§fn get_all_movements<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Movement>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_movements<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Movement>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets every stored movement. Read more
Source§fn store_pending_board<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vtxo: &'life1 Vtxo<Full>,
funding_tx: &'life2 Transaction,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn store_pending_board<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
vtxo: &'life1 Vtxo<Full>,
funding_tx: &'life2 Transaction,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Store a pending board. Read more
Source§fn remove_pending_board<'life0, 'life1, 'async_trait>(
&'life0 self,
vtxo_id: &'life1 VtxoId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_pending_board<'life0, 'life1, 'async_trait>(
&'life0 self,
vtxo_id: &'life1 VtxoId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a pending board. Read more
Source§fn get_all_pending_board_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<VtxoId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_pending_board_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<VtxoId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_pending_board_by_vtxo_id<'life0, 'async_trait>(
&'life0 self,
vtxo_id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<PendingBoard>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_board_by_vtxo_id<'life0, 'async_trait>(
&'life0 self,
vtxo_id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<PendingBoard>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn store_round_state_lock_vtxos<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 RoundState,
) -> Pin<Box<dyn Future<Output = Result<RoundStateId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_round_state_lock_vtxos<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 RoundState,
) -> Pin<Box<dyn Future<Output = Result<RoundStateId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a new ongoing round state and lock the VTXOs in round Read more
Source§fn update_round_state<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 StoredRoundState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_round_state<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 StoredRoundState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update an existing stored pending round state Read more
Source§fn remove_round_state<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 StoredRoundState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_round_state<'life0, 'life1, 'async_trait>(
&'life0 self,
round_state: &'life1 StoredRoundState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove a pending round state from the db Read more
Source§fn get_round_state_by_id<'life0, 'async_trait>(
&'life0 self,
_id: RoundStateId,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredRoundState<Unlocked>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_round_state_by_id<'life0, 'async_trait>(
&'life0 self,
_id: RoundStateId,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredRoundState<Unlocked>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Load a single round state by its id Read more
Source§fn get_pending_round_state_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RoundStateId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_round_state_ids<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RoundStateId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Load all pending round states from the db Read more
Source§fn store_vtxos<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
vtxos: &'life1 [(&'life2 Vtxo<Full>, &'life3 VtxoState)],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn store_vtxos<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
vtxos: &'life1 [(&'life2 Vtxo<Full>, &'life3 VtxoState)],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Stores VTXOs with their initial state. Read more
Source§fn get_wallet_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_wallet_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_all_vtxos<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_vtxos<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all wallet VTXOs in the database. Read more
Source§fn get_vtxos_by_state<'life0, 'life1, 'async_trait>(
&'life0 self,
states: &'life1 [VtxoStateKind],
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_vtxos_by_state<'life0, 'life1, 'async_trait>(
&'life0 self,
states: &'life1 [VtxoStateKind],
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletVtxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all wallet VTXOs whose state matches any of the provided kinds. Read more
Source§fn remove_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<Vtxo<Full>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<Option<Vtxo<Full>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn has_spent_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn has_spent_vtxo<'life0, 'async_trait>(
&'life0 self,
id: VtxoId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn update_vtxo_state_checked<'life0, 'life1, 'async_trait>(
&'life0 self,
vtxo_id: VtxoId,
new_state: VtxoState,
allowed_old_states: &'life1 [VtxoStateKind],
) -> Pin<Box<dyn Future<Output = Result<WalletVtxo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_vtxo_state_checked<'life0, 'life1, 'async_trait>(
&'life0 self,
vtxo_id: VtxoId,
new_state: VtxoState,
allowed_old_states: &'life1 [VtxoStateKind],
) -> Pin<Box<dyn Future<Output = Result<WalletVtxo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn store_vtxo_key<'life0, 'async_trait>(
&'life0 self,
index: u32,
public_key: PublicKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_vtxo_key<'life0, 'async_trait>(
&'life0 self,
index: u32,
public_key: PublicKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_last_vtxo_key_index<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<u32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_last_vtxo_key_index<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<u32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_public_key_idx<'life0, 'life1, 'async_trait>(
&'life0 self,
public_key: &'life1 PublicKey,
) -> Pin<Box<dyn Future<Output = Result<Option<u32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_public_key_idx<'life0, 'life1, 'async_trait>(
&'life0 self,
public_key: &'life1 PublicKey,
) -> Pin<Box<dyn Future<Output = Result<Option<u32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_mailbox_checkpoint<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_mailbox_checkpoint<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the mailbox checkpoint from the database Read more
Source§fn store_mailbox_checkpoint<'life0, 'async_trait>(
&'life0 self,
checkpoint: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn store_mailbox_checkpoint<'life0, 'async_trait>(
&'life0 self,
checkpoint: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update the mailbox checkpoint to the new checkpoint Read more
Source§fn store_new_pending_lightning_send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
invoice: &'life1 Invoice,
amount: Amount,
fee: Amount,
vtxo_ids: &'life2 [VtxoId],
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<LightningSend>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn store_new_pending_lightning_send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
invoice: &'life1 Invoice,
amount: Amount,
fee: Amount,
vtxo_ids: &'life2 [VtxoId],
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<LightningSend>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Store a new pending lightning send. Read more
Source§fn get_all_pending_lightning_send<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LightningSend>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_pending_lightning_send<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LightningSend>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all pending lightning sends. Read more
Source§fn finish_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
preimage: Option<Preimage>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finish_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
preimage: Option<Preimage>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mark a lightning send as finished. Read more
Source§fn remove_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a lightning send. Read more
Source§fn get_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<Option<LightningSend>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_lightning_send<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<Option<LightningSend>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a lightning send by payment hash Read more
Source§fn store_lightning_receive<'life0, 'life1, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
preimage: Preimage,
invoice: &'life1 Bolt11Invoice,
htlc_recv_cltv_delta: BlockDelta,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_lightning_receive<'life0, 'life1, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
preimage: Preimage,
invoice: &'life1 Bolt11Invoice,
htlc_recv_cltv_delta: BlockDelta,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store an incoming Lightning receive record. Read more
Source§fn get_all_pending_lightning_receives<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LightningReceive>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_pending_lightning_receives<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<LightningReceive>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns a list of all pending lightning receives Read more
Source§fn set_preimage_revealed<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_preimage_revealed<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mark a Lightning receive preimage as revealed (e.g., after settlement). Read more
Source§fn update_lightning_receive<'life0, 'life1, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
vtxo_ids: &'life1 [VtxoId],
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_lightning_receive<'life0, 'life1, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
vtxo_ids: &'life1 [VtxoId],
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn fetch_lightning_receive_by_payment_hash<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<Option<LightningReceive>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_lightning_receive_by_payment_hash<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<Option<LightningReceive>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a Lightning receive by its payment hash. Read more
Source§fn finish_pending_lightning_receive<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn finish_pending_lightning_receive<'life0, 'async_trait>(
&'life0 self,
payment_hash: PaymentHash,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mark a Lightning receive as finished by its payment hash. Read more
Source§fn store_pending_offboard<'life0, 'life1, 'async_trait>(
&'life0 self,
pending: &'life1 PendingOffboard,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_pending_offboard<'life0, 'life1, 'async_trait>(
&'life0 self,
pending: &'life1 PendingOffboard,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a pending offboard record. Read more
Source§fn get_pending_offboards<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingOffboard>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending_offboards<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingOffboard>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all pending offboard records. Read more
Source§fn remove_pending_offboard<'life0, 'async_trait>(
&'life0 self,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_pending_offboard<'life0, 'async_trait>(
&'life0 self,
movement_id: MovementId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Remove a pending offboard record by its MovementId. Read more
Source§fn store_exit_vtxo_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
exit: &'life1 StoredExit,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_exit_vtxo_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
exit: &'life1 StoredExit,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn remove_exit_vtxo_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 VtxoId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_exit_vtxo_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 VtxoId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_exit_vtxo_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredExit>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_exit_vtxo_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredExit>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all VTXOs currently tracked as being exited. Read more
Source§fn store_exit_child_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
exit_txid: Txid,
child_tx: &'life1 Transaction,
origin: ExitTxOrigin,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_exit_child_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
exit_txid: Txid,
child_tx: &'life1 Transaction,
origin: ExitTxOrigin,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a child transaction related to an exit transaction. Read more
Source§fn get_exit_child_tx<'life0, 'async_trait>(
&'life0 self,
exit_txid: Txid,
) -> Pin<Box<dyn Future<Output = Result<Option<(Transaction, ExitTxOrigin)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_exit_child_tx<'life0, 'async_trait>(
&'life0 self,
exit_txid: Txid,
) -> Pin<Box<dyn Future<Output = Result<Option<(Transaction, ExitTxOrigin)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve a stored child transaction for a given exit transaction ID. Read more
Auto Trait Implementations§
impl<S> !Freeze for StorageAdaptorWrapper<S>
impl<S> !RefUnwindSafe for StorageAdaptorWrapper<S>
impl<S> Send for StorageAdaptorWrapper<S>
impl<S> Sync for StorageAdaptorWrapper<S>
impl<S> Unpin for StorageAdaptorWrapper<S>where
S: Unpin,
impl<S> !UnwindSafe for StorageAdaptorWrapper<S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request