Enum simplicity::Error
source · #[non_exhaustive]pub enum Error {
Decode(Error),
DisconnectCommitTime,
DisconnectRedeemTime,
Type(Error),
NoMoreWitnesses,
IncompleteFinalization,
InconsistentWitnessLength,
InvalidJetName(String),
Policy(Error),
}Expand description
Error type for simplicity
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decode(Error)
Decoder error
DisconnectCommitTime
A disconnect node was populated at commitment time
DisconnectRedeemTime
A disconnect node was not populated at redeem time
Type(Error)
Type-checking error
NoMoreWitnesses
Witness iterator ended early
IncompleteFinalization
Finalization failed; did not have enough witness data to satisfy program.
InconsistentWitnessLength
Witness has different length than defined in its preamble
InvalidJetName(String)
Tried to parse a jet but the name wasn’t recognized
Policy(Error)
Policy error
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<EarlyEndOfStreamError> for Error
impl From<EarlyEndOfStreamError> for Error
source§fn from(e: EarlyEndOfStreamError) -> Error
fn from(e: EarlyEndOfStreamError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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