Enum rgbwallet::psbt::RgbPsbtError
source · pub enum RgbPsbtError {
AlreadySet,
UnrelatedTransitions(OpId, OpId, MergeRevealError),
NoHostOutput,
TooManyTransitionsInBundle,
InvalidTransition(SerializeError),
}Expand description
Errors processing RGB-related proprietary PSBT keys and their values.
Variants§
AlreadySet
the key is already present in PSBT, but has a different value
state transition {0} already present in PSBT is not related to the state transition {1} which has to be added to RGB
NoHostOutput
PSBT doesn’t specify an output which can host tapret or opret commitment.
TooManyTransitionsInBundle
PSBT contains too many state transitions for a bundle.
InvalidTransition(SerializeError)
state transition data in PSBT are invalid. Details: {0}
Trait Implementations§
source§impl Clone for RgbPsbtError
impl Clone for RgbPsbtError
source§fn clone(&self) -> RgbPsbtError
fn clone(&self) -> RgbPsbtError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RgbPsbtError
impl Debug for RgbPsbtError
source§impl Display for RgbPsbtError
impl Display for RgbPsbtError
source§impl Error for RgbPsbtError
impl Error for RgbPsbtError
1.30.0 · 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 RgbPsbtError
impl From<Error> for RgbPsbtError
source§impl<E1, E2: Error> From<RgbPsbtError> for PayError<E1, E2>
impl<E1, E2: Error> From<RgbPsbtError> for PayError<E1, E2>
source§fn from(v: RgbPsbtError) -> Self
fn from(v: RgbPsbtError) -> Self
Converts to this type from the input type.
source§impl From<RgbPsbtError> for String
impl From<RgbPsbtError> for String
source§fn from(err: RgbPsbtError) -> Self
fn from(err: RgbPsbtError) -> Self
Converts to this type from the input type.
source§impl From<SerializeError> for RgbPsbtError
impl From<SerializeError> for RgbPsbtError
source§fn from(v: SerializeError) -> Self
fn from(v: SerializeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for RgbPsbtError
impl PartialEq for RgbPsbtError
source§fn eq(&self, other: &RgbPsbtError) -> bool
fn eq(&self, other: &RgbPsbtError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RgbPsbtError
impl StructuralEq for RgbPsbtError
impl StructuralPartialEq for RgbPsbtError
Auto Trait Implementations§
impl !RefUnwindSafe for RgbPsbtError
impl Send for RgbPsbtError
impl Sync for RgbPsbtError
impl Unpin for RgbPsbtError
impl !UnwindSafe for RgbPsbtError
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
§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
Compare self to
key and return true if they are equal.