pub enum TestEvent {
FundingGenerationHandled,
TxBroadcasted,
ChannelPending,
ChannelReady,
PaymentClaimable,
PaymentClaimed,
PaymentSent,
PaymentFailed,
PaymentRetried,
ChannelClosed,
SpendableOutputs,
}Expand description
Test events emitted throughout the node that allow test to know when something has happened, obviating the need for sleeps (which introduce flakiness) while keeping tests reasonably fast.
Variants§
FundingGenerationHandled
A FundingGenerationReady event was handled.
TxBroadcasted
An on-chain transaction was successfully broadcasted by LexeEsplora.
ChannelPending
A ChannelPending event was handled.
ChannelReady
A ChannelReady event was handled.
PaymentClaimable
A PaymentClaimable event was handled.
PaymentClaimed
A PaymentClaimed event was handled.
PaymentSent
A PaymentSent event was handled.
PaymentFailed
A PaymentFailed event was handled.
PaymentRetried
A payment was enqueued for retry after a transient failure.
ChannelClosed
A ChannelClosed event was handled.
SpendableOutputs
A SpendableOutputs event was handled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestEvent
impl<'de> Deserialize<'de> for TestEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for TestEvent
impl Eq for TestEvent
impl StructuralPartialEq for TestEvent
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnsafeUnpin for TestEvent
impl UnwindSafe for TestEvent
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