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
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
For simplicity of diagnosis, it’s often useful to tell a peer that something is incorrect.
Tuple Fields of Error
0: Error
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
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 OpenChannel
0: OpenChannel
Tuple Fields of AcceptChannel
Tuple Fields of FundingCreated
Tuple Fields of FundingSigned
Tuple Fields of FundingLocked
Tuple Fields of Shutdown
0: Shutdown
Tuple Fields of ClosingSigned
Tuple Fields of UpdateAddHtlc
Tuple Fields of UpdateFulfillHtlc
Tuple Fields of UpdateFailHtlc
Tuple Fields of UpdateFailMalformedHtlc
Tuple Fields of CommitmentSigned
Tuple Fields of RevokeAndAck
0: RevokeAndAck
Tuple Fields of UpdateFee
0: UpdateFee
Tuple Fields of ChannelReestablish
Tuple Fields of AnnouncementSignatures
Tuple Fields of ChannelAnnouncements
Tuple Fields of NodeAnnouncements
Tuple Fields of ChannelUpdate
Extended Gossip queries Negotiating the gossip_queries option via init enables a number of extended queries for gossip synchronization.
Tuple Fields of QueryShortChannelIds
Tuple Fields of ReplyShortChannelIdsEnd
Tuple Fields of QueryChannelRange
Tuple Fields of ReplyChannelRange
Tuple Fields of GossipTimestampFilter
Trait Implementations
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
impl RefUnwindSafe for Messages
impl UnwindSafe for Messages
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self