pub enum SilentPaymentError {
InvalidAddress(String),
InvalidPublicKey(String),
InvalidPrivateKey(String),
InvalidNetwork(String),
Bech32Error(String),
CryptoError(String),
NoInputs,
NoRecipients,
InvalidLabel(String),
HexError(String),
ScanningError(String),
}Expand description
Errors that can occur during Silent Payment operations.
Variants§
InvalidAddress(String)
Invalid address format.
InvalidPublicKey(String)
Invalid public key.
InvalidPrivateKey(String)
Invalid private key.
InvalidNetwork(String)
Invalid network.
Bech32Error(String)
Bech32 encoding/decoding error.
CryptoError(String)
Cryptographic operation failed.
NoInputs
No inputs provided.
NoRecipients
No recipients provided.
InvalidLabel(String)
Invalid label.
HexError(String)
Hex encoding/decoding error.
ScanningError(String)
Scanning error.
Trait Implementations§
Source§impl Debug for SilentPaymentError
impl Debug for SilentPaymentError
Source§impl Display for SilentPaymentError
impl Display for SilentPaymentError
Source§impl Error for SilentPaymentError
impl Error for SilentPaymentError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SilentPaymentError
impl RefUnwindSafe for SilentPaymentError
impl Send for SilentPaymentError
impl Sync for SilentPaymentError
impl Unpin for SilentPaymentError
impl UnwindSafe for SilentPaymentError
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