Struct lightning::ln::msgs::ErrorMessage
source · pub struct ErrorMessage {
pub channel_id: [u8; 32],
pub data: String,
}
Expand description
An error
message to be sent to or received from a peer.
Fields§
§channel_id: [u8; 32]
The channel ID involved in the error.
All-0s indicates a general error unrelated to a specific channel, after which all channels with the sending peer should be closed.
data: String
A possibly human-readable error description.
The string should be sanitized before it is used (e.g., emitted to logs or printed to
stdout
). Otherwise, a well crafted error message may trigger a security vulnerability in
the terminal emulator or the logging subsystem.
Trait Implementations§
source§impl Clone for ErrorMessage
impl Clone for ErrorMessage
source§fn clone(&self) -> ErrorMessage
fn clone(&self) -> ErrorMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorMessage
impl Debug for ErrorMessage
source§impl PartialEq<ErrorMessage> for ErrorMessage
impl PartialEq<ErrorMessage> for ErrorMessage
source§fn eq(&self, other: &ErrorMessage) -> bool
fn eq(&self, other: &ErrorMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.