[−][src]Enum lightning::util::events::MessageSendEvent
An event generated by ChannelManager which indicates a message should be sent to a peer (or broadcast to most peers). These events are handled by PeerManager::process_events if you are using a PeerManager.
Variants
Used to indicate that we've accepted a channel open and should send the accept_channel message provided to the given peer.
Fields of SendAcceptChannel
node_id: PublicKey
The node_id of the node which should receive this message
msg: AcceptChannel
The message which should be sent.
Used to indicate that we've initiated a channel open and should send the open_channel message provided to the given peer.
Fields of SendOpenChannel
node_id: PublicKey
The node_id of the node which should receive this message
msg: OpenChannel
The message which should be sent.
Used to indicate that a funding_created message should be sent to the peer with the given node_id.
Fields of SendFundingCreated
node_id: PublicKey
The node_id of the node which should receive this message
msg: FundingCreated
The message which should be sent.
Used to indicate that a funding_signed message should be sent to the peer with the given node_id.
Fields of SendFundingSigned
node_id: PublicKey
The node_id of the node which should receive this message
msg: FundingSigned
The message which should be sent.
Used to indicate that a funding_locked message should be sent to the peer with the given node_id.
Fields of SendFundingLocked
node_id: PublicKey
The node_id of the node which should receive these message(s)
msg: FundingLocked
The funding_locked message which should be sent.
Used to indicate that an announcement_signatures message should be sent to the peer with the given node_id.
Fields of SendAnnouncementSignatures
node_id: PublicKey
The node_id of the node which should receive these message(s)
msg: AnnouncementSignatures
The announcement_signatures message which should be sent.
Used to indicate that a series of HTLC update messages, as well as a commitment_signed message should be sent to the peer with the given node_id.
Fields of UpdateHTLCs
node_id: PublicKey
The node_id of the node which should receive these message(s)
updates: CommitmentUpdate
The update messages which should be sent. ALL messages in the struct should be sent!
Used to indicate that a revoke_and_ack message should be sent to the peer with the given node_id.
Fields of SendRevokeAndACK
node_id: PublicKey
The node_id of the node which should receive this message
msg: RevokeAndACK
The message which should be sent.
Used to indicate that a closing_signed message should be sent to the peer with the given node_id.
Fields of SendClosingSigned
node_id: PublicKey
The node_id of the node which should receive this message
msg: ClosingSigned
The message which should be sent.
Used to indicate that a shutdown message should be sent to the peer with the given node_id.
Fields of SendShutdown
Used to indicate that a channel_reestablish message should be sent to the peer with the given node_id.
Fields of SendChannelReestablish
node_id: PublicKey
The node_id of the node which should receive this message
msg: ChannelReestablish
The message which should be sent.
Used to indicate that a channel_announcement and channel_update should be broadcast to all peers (except the peer with node_id either msg.contents.node_id_1 or msg.contents.node_id_2).
Fields of BroadcastChannelAnnouncement
msg: ChannelAnnouncement
The channel_announcement which should be sent.
update_msg: ChannelUpdate
The followup channel_update which should be sent.
Used to indicate that a channel_update should be broadcast to all peers.
Fields of BroadcastChannelUpdate
msg: ChannelUpdate
The channel_update which should be sent.
Broadcast an error downstream to be handled
Fields of HandleError
node_id: PublicKey
The node_id of the node which should receive this message
action: ErrorAction
The action which should be taken.
When a payment fails we may receive updates back from the hop where it failed. In such cases this event is generated so that we can inform the router of this information.
Fields of PaymentFailureNetworkUpdate
update: HTLCFailChannelUpdate
The channel/node update which should be sent to router
Trait Implementations
impl Clone for MessageSendEvent
[src]
fn clone(&self) -> MessageSendEvent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageSendEvent
impl Send for MessageSendEvent
impl Sync for MessageSendEvent
impl Unpin for MessageSendEvent
impl UnwindSafe for MessageSendEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,