pub struct WarningMessage {
pub channel_id: ChannelId,
pub data: String,
}Expand description
A warning message to be sent to or received from a peer.
Fields§
§channel_id: ChannelIdThe channel ID involved in the warning.
All-0s indicates a warning unrelated to a specific channel.
data: StringA 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§
Source§impl Clone for WarningMessage
impl Clone for WarningMessage
Source§fn clone(&self) -> WarningMessage
fn clone(&self) -> WarningMessage
Returns a duplicate 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 WarningMessage
impl Debug for WarningMessage
Source§impl Hash for WarningMessage
impl Hash for WarningMessage
Source§impl PartialEq for WarningMessage
impl PartialEq for WarningMessage
Source§impl Readable for WarningMessage
impl Readable for WarningMessage
Source§impl Writeable for WarningMessage
impl Writeable for WarningMessage
impl Eq for WarningMessage
impl StructuralPartialEq for WarningMessage
Auto Trait Implementations§
impl Freeze for WarningMessage
impl RefUnwindSafe for WarningMessage
impl Send for WarningMessage
impl Sync for WarningMessage
impl Unpin for WarningMessage
impl UnwindSafe for WarningMessage
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