pub enum ErrorCode {
RateLimited,
NotImplemented,
InsufficientBalance,
QuotaExceeded,
Restricted,
Unauthorized,
Internal,
Other,
}
Expand description
NIP47 Response Error codes
Variants§
RateLimited
The client is sending commands too fast.
NotImplemented
The command is not known of is intentionally not implemented
InsufficientBalance
The wallet does not have enough funds to cover a fee reserve or the payment amount
QuotaExceeded
The wallet has exceeded its spending quota
Restricted
This public key is not allowed to do this operation
This public key has no wallet connected
Internal
An internal error
Other
Other error
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ErrorCode, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ErrorCode
impl Serialize for ErrorCode
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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