pub enum Event {
PaymentSuccessful {
payment_hash: PaymentHash,
},
PaymentFailed {
payment_hash: PaymentHash,
},
PaymentReceived {
payment_hash: PaymentHash,
amount_msat: u64,
},
ChannelPending {
channel_id: ChannelId,
user_channel_id: UserChannelId,
former_temporary_channel_id: ChannelId,
counterparty_node_id: PublicKey,
funding_txo: OutPoint,
},
ChannelReady {
channel_id: ChannelId,
user_channel_id: UserChannelId,
counterparty_node_id: Option<PublicKey>,
},
ChannelClosed {
channel_id: ChannelId,
user_channel_id: UserChannelId,
counterparty_node_id: Option<PublicKey>,
},
}
Expand description
An event emitted by Node
, which should be handled by the user.
Variants§
PaymentSuccessful
Fields
§
payment_hash: PaymentHash
The hash of the payment.
A sent payment was successful.
PaymentFailed
Fields
§
payment_hash: PaymentHash
The hash of the payment.
A sent payment has failed.
PaymentReceived
Fields
§
payment_hash: PaymentHash
The hash of the payment.
A payment has been received.
ChannelPending
Fields
§
user_channel_id: UserChannelId
The user_channel_id
of the channel.
§
former_temporary_channel_id: ChannelId
The temporary_channel_id
this channel used to be known by during channel establishment.
§
counterparty_node_id: PublicKey
The node_id
of the channel counterparty.
A channel has been created and is pending confirmation on-chain.
ChannelReady
Fields
§
user_channel_id: UserChannelId
The user_channel_id
of the channel.
A channel is ready to be used.
ChannelClosed
Fields
§
user_channel_id: UserChannelId
The user_channel_id
of the channel.
A channel has been closed.
Trait Implementations§
source§impl PartialEq for Event
impl PartialEq for Event
source§impl Writeable for Event
impl Writeable for Event
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.