Enum psbt_v2::v2::input::InsertPairError
source · pub enum InsertPairError {
DuplicateKey(Key),
Deser(Error),
InvalidKeyDataEmpty(Key),
InvalidKeyDataNotEmpty(Key),
HashPreimage(HashPreimageError),
}Expand description
Error inserting a key-value pair.
Variants§
DuplicateKey(Key)
Keys within key-value map should never be duplicated.
Deser(Error)
Error deserializing raw value.
InvalidKeyDataEmpty(Key)
Key should contain data.
InvalidKeyDataNotEmpty(Key)
Key should not contain data.
HashPreimage(HashPreimageError)
The pre-image must hash to the correponding psbt hash
Trait Implementations§
source§impl Debug for InsertPairError
impl Debug for InsertPairError
source§impl Display for InsertPairError
impl Display for InsertPairError
source§impl Error for InsertPairError
Available on crate feature std only.
impl Error for InsertPairError
Available on crate feature
std only.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<Error> for InsertPairError
impl From<Error> for InsertPairError
source§impl From<HashPreimageError> for InsertPairError
impl From<HashPreimageError> for InsertPairError
source§fn from(e: HashPreimageError) -> Self
fn from(e: HashPreimageError) -> Self
Converts to this type from the input type.
source§impl From<InsertPairError> for DecodeError
impl From<InsertPairError> for DecodeError
source§fn from(e: InsertPairError) -> Self
fn from(e: InsertPairError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InsertPairError
impl Send for InsertPairError
impl Sync for InsertPairError
impl Unpin for InsertPairError
impl !UnwindSafe for InsertPairError
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