[][src]Enum miniscript::Error

pub enum Error {
    InvalidOpcode(All),
    InvalidPush(Vec<u8>),
    Psbt(Error),
    Script(Error),
    Unprintable(u8),
    ExpectedChar(char),
    UnexpectedStart,
    Unexpected(String),
    BadPubkey(Error),
    MissingHash(Hash),
    MissingSig(PublicKey),
    LocktimeNotMet(u32),
    CouldNotSatisfy,
}

Script Descriptor error

Variants

InvalidOpcode(All)

Opcode appeared which is not part of the script subset

InvalidPush(Vec<u8>)

Push was illegal in some context

Psbt(Error)

PSBT-related error

Script(Error)

rust-bitcoin script error

Unprintable(u8)

Encountered unprintable character in descriptor

ExpectedChar(char)

expected character while parsing descriptor; didn't find one

UnexpectedStart

While parsing backward, hit beginning of script

Unexpected(String)

Got something we were not expecting

BadPubkey(Error)

Failed to parse a push as a public key

MissingHash(Hash)

Could not satisfy a script (fragment) because of a missing hash preimage

MissingSig(PublicKey)

Could not satisfy a script (fragment) because of a missing signature

LocktimeNotMet(u32)

Could not satisfy, locktime not met

CouldNotSatisfy

General failure to satisfy

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]