Enum lightning::ln::msgs::ErrorAction [−][src]
pub enum ErrorAction { DisconnectPeer { msg: Option<ErrorMessage>, }, IgnoreError, IgnoreAndLog(Level), SendErrorMessage { msg: ErrorMessage, }, }
Expand description
Used to put an error message in a LightningError
Variants
The peer took some action which made us think they were useless. Disconnect them.
Show fields
Fields of DisconnectPeer
msg: Option<ErrorMessage>
An error message which we should make an effort to send before we disconnect.
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.
The peer did something incorrect. Tell them.
Show fields
Fields of SendErrorMessage
msg: ErrorMessage
The message to send.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorAction
impl Send for ErrorAction
impl Sync for ErrorAction
impl Unpin for ErrorAction
impl UnwindSafe for ErrorAction
Blanket Implementations
Mutably borrows from an owned value. Read more