Expand description
A warning message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID involved in the warning.
All-0s indicates a warning unrelated to a specific channel.
data: String
A possibly human-readable warning 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
sourceimpl Clone for WarningMessage
impl Clone for WarningMessage
sourcefn clone(&self) -> WarningMessage
fn clone(&self) -> WarningMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WarningMessage
impl Debug for WarningMessage
sourceimpl PartialEq<WarningMessage> for WarningMessage
impl PartialEq<WarningMessage> for WarningMessage
sourcefn eq(&self, other: &WarningMessage) -> bool
fn eq(&self, other: &WarningMessage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Readable for WarningMessage
impl Readable for WarningMessage
sourceimpl Writeable for WarningMessage
impl Writeable for WarningMessage
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for WarningMessage
Auto Trait Implementations
impl RefUnwindSafe for WarningMessage
impl Send for WarningMessage
impl Sync for WarningMessage
impl Unpin for WarningMessage
impl UnwindSafe for WarningMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more