Enum bdk::descriptor::policy::PolicyError
source · [−]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
AddOnLeaf
Can not add to an item that is Satisfaction::None
or Satisfaction::Complete
AddOnPartialComplete
Can not add to an item that is Satisfaction::PartialComplete
MixedTimelockUnits
Can not merge CSV or timelock values unless both are less than or both are equal or greater than 500_000_000
IncompatibleConditions
Incompatible conditions (not currently used)
Trait Implementations
sourceimpl Debug for PolicyError
impl Debug for PolicyError
sourceimpl Display for PolicyError
impl Display for PolicyError
sourceimpl Error for PolicyError
impl Error for PolicyError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<PolicyError> for Error
impl From<PolicyError> for Error
sourcefn from(err: PolicyError) -> Self
fn from(err: PolicyError) -> Self
Converts to this type from the input type.
sourceimpl From<PolicyError> for Error
impl From<PolicyError> for Error
sourcefn from(err: PolicyError) -> Self
fn from(err: PolicyError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PolicyError> for PolicyError
impl PartialEq<PolicyError> for PolicyError
sourcefn eq(&self, other: &PolicyError) -> bool
fn eq(&self, other: &PolicyError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for PolicyError
impl StructuralEq for PolicyError
impl StructuralPartialEq for PolicyError
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more