Enum bdk::descriptor::policy::PolicyError [−][src]
pub enum PolicyError { NotEnoughItemsSelected(String), IndexOutOfRange(usize), AddOnLeaf, AddOnPartialComplete, MixedTimelockUnits, IncompatibleConditions, }
Expand description
Errors that can happen while extracting and manipulating policies
Variants
NotEnoughItemsSelected(String)
Not enough items are selected to satisfy a SatisfiableItem::Thresh
or a SatisfiableItem::Multisig
IndexOutOfRange(usize)
Index out of range for an item to satisfy a SatisfiableItem::Thresh
or a SatisfiableItem::Multisig
Can not add to an item that is Satisfaction::None
or Satisfaction::Complete
Can not add to an item that is Satisfaction::PartialComplete
Can not merge CSV or timelock values unless both are less than or both are equal or greater than 500_000_000
Incompatible conditions (not currently used)
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnwindSafe for PolicyError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V