[−][src]Enum miniscript::miniscript::types::ErrorKind
Detailed type of a typechecker error
Variants
Relative or absolute timelock had a time value of 0
Passed a z
argument to a d
wrapper when z
was expected
Multisignature or threshold policy had a k
value of 0
Multisignature or threshold policy has a k
value in
excess of the number of subfragments
Attempted to construct a disjunction (or andor
) for which
none of the child nodes were strong. This means that a 3rd
party could produce a satisfaction for any branch, meaning
that no matter which one an honest signer chooses, it is
possible to malleate the transaction.
Many fragments (all disjunctions except or_i
as well as
andor
require their left child be dissatisfiable.
or_b
requires its right child be dissatisfiable
Tried to use the s:
modifier on a fragment that takes more
than one input
Tried to use the j:
(SIZE 0NOTEQUAL IF
) wrapper on something
that may be satisfied by a 0 input
Many fragments require their left child to be a unit. This was not the case.
ChildBase1(Base)
Attempted to construct a wrapper, but the child had an invalid type
Attempted to construct a conjunction or disjunction, but the fragments' children were of invalid types
Attempted to construct an andor
but the fragments'
children were of invalid types
The nth child of a threshold fragment had an invalid type (the
first must be B
and the rest W
s)
ThresholdDissat(usize)
The nth child of a threshold fragment did not have a unique satisfaction
ThresholdNonUnit(usize)
The nth child of a threshold fragment was not a unit
Insufficiently many children of a threshold fragment were strong
Fields of ThresholdNotStrong
Trait Implementations
impl Clone for ErrorKind
[src]
impl Copy for ErrorKind
[src]
impl Debug for ErrorKind
[src]
impl Eq for ErrorKind
[src]
impl Hash for ErrorKind
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ErrorKind
[src]
pub fn cmp(&self, other: &ErrorKind) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<ErrorKind> for ErrorKind
[src]
impl PartialOrd<ErrorKind> for ErrorKind
[src]
pub fn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ErrorKind) -> bool
[src]
pub fn le(&self, other: &ErrorKind) -> bool
[src]
pub fn gt(&self, other: &ErrorKind) -> bool
[src]
pub fn ge(&self, other: &ErrorKind) -> bool
[src]
impl StructuralEq for ErrorKind
[src]
impl StructuralPartialEq for ErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
[src]
impl Send for ErrorKind
[src]
impl Sync for ErrorKind
[src]
impl Unpin for ErrorKind
[src]
impl UnwindSafe for ErrorKind
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,