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

DisconnectPeer

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.

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.

SendErrorMessage

The peer did something incorrect. Tell them.

Show fields

Fields of SendErrorMessage

msg: ErrorMessage

The message to send.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.