Enum lightning_signer::policy::error::ValidationErrorKind
source · pub enum ValidationErrorKind {
TransactionFormat(String),
ScriptFormat(String),
Mismatch(String),
Policy(String),
UnknownDestinations(String, Vec<usize>),
}
Expand description
Kind of validation error
Variants§
TransactionFormat(String)
The transaction could not be parsed or had non-standard elements
ScriptFormat(String)
A scriptPubkey could not be parsed or was non-standard for Lightning
Mismatch(String)
A script element didn’t match the channel setup
Policy(String)
A policy was violated
UnknownDestinations(String, Vec<usize>)
A layer-1 transaction outputs to unknown destinations. Includes the list of tx output indices that are unknown.
Trait Implementations§
source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
Returns a copy 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 ValidationErrorKind
impl Debug for ValidationErrorKind
source§impl PartialEq<ValidationErrorKind> for ValidationErrorKind
impl PartialEq<ValidationErrorKind> for ValidationErrorKind
source§fn eq(&self, other: &ValidationErrorKind) -> bool
fn eq(&self, other: &ValidationErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.