#[repr(i32)]pub enum ErrorCode {
Show 31 variants
IncorrectSignature = 0,
MissingInputs = 1,
MissingOutputs = 2,
InvalidAddressInputIndex = 3,
InvalidHashLength = 4,
TransactionAlreadyProcessing = 5,
UnknownUtxo = 6,
BalanceMismatch = 7,
InsufficientBalance = 8,
InsufficientFee = 9,
MissingProof = 10,
TransactionRejectedDoubleSpend = 11,
InternalDatabaseError = 12,
AddressPublicKeyProofMismatch = 13,
UnknownError = 14,
DatabaseFailure = 15,
MissingField = 16,
ProtoDecoderFailure = 17,
InvalidNetworkEnvironment = 18,
DataStoreInternalCorruption = 19,
HexDecodeFailure = 20,
AddressDecodeFailure = 21,
UnsupportedCurrency = 22,
AddressNotFound = 23,
UnknownTransaction = 24,
UnknownBlock = 25,
InternalChannelSendError = 26,
InternalChannelReceiveError = 27,
ParseFailure = 28,
DeserializationFailure = 29,
SerializationFailure = 30,
}Variants§
IncorrectSignature = 0
MissingInputs = 1
MissingOutputs = 2
InvalidAddressInputIndex = 3
InvalidHashLength = 4
TransactionAlreadyProcessing = 5
UnknownUtxo = 6
BalanceMismatch = 7
InsufficientBalance = 8
InsufficientFee = 9
MissingProof = 10
TransactionRejectedDoubleSpend = 11
InternalDatabaseError = 12
AddressPublicKeyProofMismatch = 13
UnknownError = 14
DatabaseFailure = 15
MissingField = 16
ProtoDecoderFailure = 17
InvalidNetworkEnvironment = 18
DataStoreInternalCorruption = 19
HexDecodeFailure = 20
AddressDecodeFailure = 21
UnsupportedCurrency = 22
AddressNotFound = 23
UnknownTransaction = 24
UnknownBlock = 25
InternalChannelSendError = 26
InternalChannelReceiveError = 27
ParseFailure = 28
DeserializationFailure = 29
SerializationFailure = 30
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEnumIterator for ErrorCode
impl IntoEnumIterator for ErrorCode
type Iterator = ErrorCodeIter
fn iter() -> ErrorCodeIter ⓘ
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more