#[non_exhaustive]pub enum P2shError {
ExcessiveScriptSize,
}
Expand description
Error while generating address from a p2sh script.
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.
ExcessiveScriptSize
Address size more than 520 bytes is not allowed.
Trait Implementations§
§impl Error for P2shError
impl Error for P2shError
§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()
§impl From<Infallible> for P2shError
impl From<Infallible> for P2shError
§fn from(never: Infallible) -> P2shError
fn from(never: Infallible) -> P2shError
Converts to this type from the input type.
impl Eq for P2shError
impl StructuralPartialEq for P2shError
Auto Trait Implementations§
impl Freeze for P2shError
impl RefUnwindSafe for P2shError
impl Send for P2shError
impl Sync for P2shError
impl Unpin for P2shError
impl UnwindSafe for P2shError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more