Enum breez_sdk_liquid::lightning::ln::msgs::ErrorAction
pub enum ErrorAction {
DisconnectPeer {
msg: Option<ErrorMessage>,
},
DisconnectPeerWithWarning {
msg: WarningMessage,
},
IgnoreError,
IgnoreAndLog(Level),
IgnoreDuplicateGossip,
SendErrorMessage {
msg: ErrorMessage,
},
SendWarningMessage {
msg: WarningMessage,
log_level: Level,
},
}
Expand description
Used to put an error message in a LightningError
.
Variants§
DisconnectPeer
The peer took some action which made us think they were useless. Disconnect them.
Fields
msg: Option<ErrorMessage>
An error message which we should make an effort to send before we disconnect.
DisconnectPeerWithWarning
The peer did something incorrect. Tell them without closing any channels and disconnect them.
Fields
msg: WarningMessage
A warning message which we should make an effort to send before we disconnect.
IgnoreError
The peer did something harmless that we weren’t able to process, just log and ignore
IgnoreAndLog(Level)
The peer did something harmless that we weren’t able to meaningfully process. If the error is logged, log it at the given level.
IgnoreDuplicateGossip
The peer provided us with a gossip message which we’d already seen. In most cases this should be ignored, but it may result in the message being forwarded if it is a duplicate of our own channel announcements.
SendErrorMessage
The peer did something incorrect. Tell them.
Fields
msg: ErrorMessage
The message to send.
SendWarningMessage
The peer did something incorrect. Tell them without closing any channels.
Fields
msg: WarningMessage
The message to send.
Trait Implementations§
§impl Clone for ErrorAction
impl Clone for ErrorAction
§fn clone(&self) -> ErrorAction
fn clone(&self) -> ErrorAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ErrorAction
impl Debug for ErrorAction
§impl PartialEq for ErrorAction
impl PartialEq for ErrorAction
impl StructuralPartialEq for ErrorAction
Auto Trait Implementations§
impl Freeze for ErrorAction
impl RefUnwindSafe for ErrorAction
impl Send for ErrorAction
impl Sync for ErrorAction
impl Unpin for ErrorAction
impl UnwindSafe for ErrorAction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request