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
A sent payment was successful.
Fields
§
payment_hash: PaymentHash
The hash of the payment.
PaymentFailed
A sent payment has failed.
Fields
§
payment_hash: PaymentHash
The hash of the payment.
PaymentReceived
A payment has been received.
Fields
§
payment_hash: PaymentHash
The hash of the payment.
ChannelPending
A channel has been created and is pending confirmation on-chain.
Fields
§
user_channel_id: UserChannelId
The user_channel_id
of the channel.
ChannelReady
A channel is ready to be used.
Fields
§
user_channel_id: UserChannelId
The user_channel_id
of the channel.
ChannelClosed
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 StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more