pub enum Error {
Show 15 variants
ProofsRequired,
UnsupportedToken,
UnsupportedUnit,
UnsupportedPaymentMethod,
DuplicateProofs,
SerdeJsonError(Error),
Utf8ParseError(FromUtf8Error),
Base64Error(DecodeError),
CiboriumError(Error<Error>),
CiboriumSerError(Error<Error>),
Amount(Error),
Secret(Error),
DHKE(Error),
NUT10(Error),
NUT11(Error),
}
Expand description
NUT00 Error
Variants§
ProofsRequired
Proofs required
UnsupportedToken
Unsupported token
UnsupportedUnit
Unsupported token
UnsupportedPaymentMethod
Unsupported token
DuplicateProofs
Duplicate proofs in token
SerdeJsonError(Error)
Serde Json error
Utf8ParseError(FromUtf8Error)
Utf8 parse error
Base64Error(DecodeError)
Base64 error
CiboriumError(Error<Error>)
Ciborium deserialization error
CiboriumSerError(Error<Error>)
Ciborium serialization error
Amount(Error)
Amount Error
Secret(Error)
Secret error
DHKE(Error)
DHKE error
NUT10(Error)
NUT10 error
NUT11(Error)
NUT11 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)>
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()
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Error
fn from(source: DecodeError) -> Error
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Error
fn from(source: FromUtf8Error) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
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