pub enum OrdError {
Show 19 variants
TaprootKeypairNotProvided,
HexCodec(FromHexError),
Codec(Error),
BitcoinSigHash(Error),
PushBytes(PushBytesError),
InputNotFound(usize),
InsufficientBalance {
required: u64,
available: u64,
},
Signature(Error),
PubkeyConversion(Error),
UnexpectedSignature,
TaprootBuilder(TaprootBuilderError),
TaprootCompute,
Script(Error),
NoInputs,
Utf8Encoding(Utf8Error),
InscriptionParser(InscriptionParseError),
InvalidInputs,
InvalidScriptType,
Custom(String),
}
Expand description
Ordinal transaction handling error types
Variants§
TaprootKeypairNotProvided
HexCodec(FromHexError)
Codec(Error)
BitcoinSigHash(Error)
PushBytes(PushBytesError)
InputNotFound(usize)
InsufficientBalance
Signature(Error)
PubkeyConversion(Error)
UnexpectedSignature
TaprootBuilder(TaprootBuilderError)
TaprootCompute
Script(Error)
NoInputs
Utf8Encoding(Utf8Error)
InscriptionParser(InscriptionParseError)
InvalidInputs
InvalidScriptType
Custom(String)
Trait Implementations§
Source§impl Error for OrdError
impl Error for OrdError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FromHexError> for OrdError
impl From<FromHexError> for OrdError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<InscriptionParseError> for OrdError
impl From<InscriptionParseError> for OrdError
Source§fn from(source: InscriptionParseError) -> Self
fn from(source: InscriptionParseError) -> Self
Converts to this type from the input type.
Source§impl From<PushBytesError> for OrdError
impl From<PushBytesError> for OrdError
Source§fn from(source: PushBytesError) -> Self
fn from(source: PushBytesError) -> Self
Converts to this type from the input type.
Source§impl From<TaprootBuilderError> for OrdError
impl From<TaprootBuilderError> for OrdError
Source§fn from(source: TaprootBuilderError) -> Self
fn from(source: TaprootBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OrdError
impl !RefUnwindSafe for OrdError
impl Send for OrdError
impl Sync for OrdError
impl Unpin for OrdError
impl !UnwindSafe for OrdError
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