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 ==
.source§impl Readable for ErrorMessage
impl Readable for ErrorMessage
source§impl Writeable for ErrorMessage
impl Writeable for ErrorMessage
impl Eq for ErrorMessage
impl StructuralEq for ErrorMessage
impl StructuralPartialEq for ErrorMessage
Auto Trait Implementations§
impl RefUnwindSafe for ErrorMessage
impl Send for ErrorMessage
impl Sync for ErrorMessage
impl Unpin for ErrorMessage
impl UnwindSafe for ErrorMessage
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