Struct BumpTransactionEventHandler
pub struct BumpTransactionEventHandler<B, C, SP, L>where
B: Deref,
C: Deref,
SP: Deref,
L: Deref,
<B as Deref>::Target: BroadcasterInterface,
<C as Deref>::Target: CoinSelectionSource,
<SP as Deref>::Target: SignerProvider,
<L as Deref>::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§
§impl<B, C, SP, L> BumpTransactionEventHandler<B, C, SP, L>
impl<B, C, SP, L> BumpTransactionEventHandler<B, C, SP, L>
pub fn new(
broadcaster: B,
utxo_source: C,
signer_provider: SP,
logger: L,
) -> BumpTransactionEventHandler<B, C, SP, L>
pub fn new( broadcaster: B, utxo_source: C, signer_provider: SP, logger: L, ) -> BumpTransactionEventHandler<B, C, SP, L>
Returns a new instance capable of handling Event::BumpTransaction
events.
pub 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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