pub struct BumpTransactionEventHandler<B: Deref, C: Deref, SP: Deref, L: Deref>where
B::Target: BroadcasterInterface,
C::Target: CoinSelectionSource,
SP::Target: SignerProvider,
L::Target: Logger,{ /* private fields */ }Expand description
A handler for Event::BumpTransaction events that sources confirmed UTXOs from a
CoinSelectionSource to fee bump transactions via Child-Pays-For-Parent (CPFP) or
Replace-By-Fee (RBF).
Implementations§
Source§impl<B: Deref, C: Deref, SP: Deref, L: Deref> BumpTransactionEventHandler<B, C, SP, L>where
B::Target: BroadcasterInterface,
C::Target: CoinSelectionSource,
SP::Target: SignerProvider,
L::Target: Logger,
impl<B: Deref, C: Deref, SP: Deref, L: Deref> BumpTransactionEventHandler<B, C, SP, L>where
B::Target: BroadcasterInterface,
C::Target: CoinSelectionSource,
SP::Target: SignerProvider,
L::Target: Logger,
Sourcepub fn new(
broadcaster: B,
utxo_source: C,
signer_provider: SP,
logger: L,
) -> Self
pub fn new( broadcaster: B, utxo_source: C, signer_provider: SP, logger: L, ) -> Self
Returns a new instance capable of handling Event::BumpTransaction events.
Sourcepub fn handle_event(&self, event: &BumpTransactionEvent)
pub fn handle_event(&self, event: &BumpTransactionEvent)
Handles all variants of BumpTransactionEvent.
Auto Trait Implementations§
impl<B, C, SP, L> Freeze for BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> RefUnwindSafe for BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> Send for BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> Sync for BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> Unpin for BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> UnwindSafe for BumpTransactionEventHandler<B, C, SP, L>
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