Enum lightning_signer::policy::error::ValidationErrorKind
source · pub enum ValidationErrorKind {
TransactionFormat(String),
ScriptFormat(String),
Mismatch(String),
Policy(String),
TemporaryPolicy(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
TemporaryPolicy(String)
A policy was temporarily violated, but a retry is possible (e.g. the funding is not yet considered confirmed because the oracle is behind)
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 for ValidationErrorKind
impl PartialEq 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 ==
.impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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