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
sourcefn ne(&self, other: &WarningMessage) -> bool
fn ne(&self, other: &WarningMessage) -> bool
This method tests for !=
.
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 encode_with_len(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_with_len(&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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more