Enum lnp::message::Messages[][src]

#[non_exhaustive]
pub enum Messages {
Show 28 variants Init(Init), Error(Error), Ping(Ping), Pong(Vec<u8>), OpenChannel(OpenChannel), AcceptChannel(AcceptChannel), FundingCreated(FundingCreated), FundingSigned(FundingSigned), FundingLocked(FundingLocked), Shutdown(Shutdown), ClosingSigned(ClosingSigned), UpdateAddHtlc(UpdateAddHtlc), UpdateFulfillHtlc(UpdateFulfillHtlc), UpdateFailHtlc(UpdateFailHtlc), UpdateFailMalformedHtlc(UpdateFailMalformedHtlc), CommitmentSigned(CommitmentSigned), RevokeAndAck(RevokeAndAck), UpdateFee(UpdateFee), ChannelReestablish(ChannelReestablish), AnnouncementSignatures(AnnouncementSignatures), ChannelAnnouncements(ChannelAnnouncements), NodeAnnouncements(NodeAnnouncements), ChannelUpdate(ChannelUpdate), QueryShortChannelIds(QueryShortChannelIds), ReplyShortChannelIdsEnd(ReplyShortChannelIdsEnd), QueryChannelRange(QueryChannelRange), ReplyChannelRange(ReplyChannelRange), GossipTimestampFilter(GossipTimestampFilter),
}

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Init

Once authentication is complete, the first message reveals the features supported or required by this node, even if this is a reconnection.

Tuple Fields of Init

0: Init
Error

For simplicity of diagnosis, it’s often useful to tell a peer that something is incorrect.

Tuple Fields of Error

0: Error
Ping

In order to allow for the existence of long-lived TCP connections, at times it may be required that both ends keep alive the TCP connection at the application level. Such messages also allow obfuscation of traffic patterns.

Tuple Fields of Ping

0: Ping
Pong

The pong message is to be sent whenever a ping message is received. It serves as a reply and also serves to keep the connection alive, while explicitly notifying the other end that the receiver is still active. Within the received ping message, the sender will specify the number of bytes to be included within the data payload of the pong message.

Tuple Fields of Pong

0: Vec<u8>
OpenChannel

Tuple Fields of OpenChannel

0: OpenChannel
AcceptChannel

Tuple Fields of AcceptChannel

0: AcceptChannel
FundingCreated

Tuple Fields of FundingCreated

0: FundingCreated
FundingSigned

Tuple Fields of FundingSigned

0: FundingSigned
FundingLocked

Tuple Fields of FundingLocked

0: FundingLocked
Shutdown

Tuple Fields of Shutdown

0: Shutdown
ClosingSigned

Tuple Fields of ClosingSigned

0: ClosingSigned
UpdateAddHtlc

Tuple Fields of UpdateAddHtlc

0: UpdateAddHtlc
UpdateFulfillHtlc

Tuple Fields of UpdateFulfillHtlc

0: UpdateFulfillHtlc
UpdateFailHtlc

Tuple Fields of UpdateFailHtlc

0: UpdateFailHtlc
UpdateFailMalformedHtlc

Tuple Fields of UpdateFailMalformedHtlc

0: UpdateFailMalformedHtlc
CommitmentSigned

Tuple Fields of CommitmentSigned

0: CommitmentSigned
RevokeAndAck

Tuple Fields of RevokeAndAck

0: RevokeAndAck
UpdateFee

Tuple Fields of UpdateFee

0: UpdateFee
ChannelReestablish

Tuple Fields of ChannelReestablish

0: ChannelReestablish
AnnouncementSignatures

Tuple Fields of AnnouncementSignatures

0: AnnouncementSignatures
ChannelAnnouncements

Tuple Fields of ChannelAnnouncements

0: ChannelAnnouncements
NodeAnnouncements

Tuple Fields of NodeAnnouncements

0: NodeAnnouncements
ChannelUpdate

Tuple Fields of ChannelUpdate

0: ChannelUpdate
QueryShortChannelIds

Extended Gossip queries Negotiating the gossip_queries option via init enables a number of extended queries for gossip synchronization.

Tuple Fields of QueryShortChannelIds

0: QueryShortChannelIds
ReplyShortChannelIdsEnd

Tuple Fields of ReplyShortChannelIdsEnd

0: ReplyShortChannelIdsEnd
QueryChannelRange

Tuple Fields of QueryChannelRange

0: QueryChannelRange
ReplyChannelRange

Tuple Fields of ReplyChannelRange

0: ReplyChannelRange
GossipTimestampFilter

Tuple Fields of GossipTimestampFilter

0: GossipTimestampFilter

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Decode with the given std::io::Read instance; must either construct an instance or return implementation-specific error type. Read more

Tries to deserialize byte array into the current type using LightningDecode::lightning_decode function. Read more

Encode with the given std::io::Write instance; must return result with either amount of bytes encoded – or implementation-specific error type. Read more

Serializes data as a byte array using LightningEncode::lightning_encode function. Read more

Decode with the given std::io::Read instance; must either construct an instance or return implementation-specific error type. Read more

Tries to deserialize byte array into the current type using StrictDecode::strict_decode Read more

Encode with the given std::io::Write instance; must return result with either amount of bytes encoded – or implementation-specific error type. Read more

Serializes data as a byte array using StrictEncode::strict_encode function Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.