pub enum SparkSdkError {
Show 41 variants
Transport(Error),
Status(Status),
InvalidUri(InvalidUri),
Config(String),
Wallet(String),
Secp256k1(Error),
InvalidInput(String),
RpcConnection(String),
DepositAddressValidationFailed(String),
TreeCreationError(String),
FrostSigningError(String),
FrostAggregationError(String),
InvalidArgument(String),
InvalidAddress(String),
TransferError(String),
CryptoError(String),
AuthenticationError(String),
InitializationError(String),
General(String),
NoLeavesFound,
NoLeafWithExactAmount,
LeafSelectionError(String),
InvalidHash(String),
InvalidBitcoinTransaction(String),
IoError(String),
DecryptionError(String),
SecretKeyNotFound(String),
MissingKeyshareInfo(String),
InvalidResponse(String),
Io(String),
BitcoinRpc(String),
InvalidKeyshareConfig(String),
InvalidTokenTransaction(String),
TestDatabaseQueryError(String),
SerdeJson(Error),
GraphQLError(String),
GraphQLRequestFailed(String),
DecodingError(FromHexError),
LeafNotFound(String),
FromUuidError(Error),
FaucetRequestFailed(String),
}Variants§
Transport(Error)
Status(Status)
InvalidUri(InvalidUri)
Config(String)
Wallet(String)
Secp256k1(Error)
InvalidInput(String)
RpcConnection(String)
DepositAddressValidationFailed(String)
TreeCreationError(String)
FrostSigningError(String)
FrostAggregationError(String)
InvalidArgument(String)
InvalidAddress(String)
TransferError(String)
CryptoError(String)
AuthenticationError(String)
InitializationError(String)
General(String)
NoLeavesFound
NoLeafWithExactAmount
LeafSelectionError(String)
InvalidHash(String)
InvalidBitcoinTransaction(String)
IoError(String)
DecryptionError(String)
SecretKeyNotFound(String)
InvalidResponse(String)
Io(String)
BitcoinRpc(String)
InvalidTokenTransaction(String)
TestDatabaseQueryError(String)
SerdeJson(Error)
GraphQLError(String)
GraphQLRequestFailed(String)
DecodingError(FromHexError)
LeafNotFound(String)
FromUuidError(Error)
FaucetRequestFailed(String)
Trait Implementations§
Source§impl Debug for SparkSdkError
impl Debug for SparkSdkError
Source§impl Display for SparkSdkError
impl Display for SparkSdkError
Source§impl Error for SparkSdkError
impl Error for SparkSdkError
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<Error> for SparkSdkError
impl From<Error> for SparkSdkError
Source§impl From<Error> for SparkSdkError
impl From<Error> for SparkSdkError
Source§impl From<Error> for SparkSdkError
impl From<Error> for SparkSdkError
Source§impl From<Error> for SparkSdkError
impl From<Error> for SparkSdkError
Source§impl From<FromHexError> for SparkSdkError
impl From<FromHexError> for SparkSdkError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for SparkSdkError
impl From<InvalidUri> for SparkSdkError
Auto Trait Implementations§
impl !Freeze for SparkSdkError
impl !RefUnwindSafe for SparkSdkError
impl Send for SparkSdkError
impl Sync for SparkSdkError
impl Unpin for SparkSdkError
impl !UnwindSafe for SparkSdkError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 176 bytes
Size for each variant:
Transport: 32 bytesStatus: 176 bytesInvalidUri: 9 bytesConfig: 32 bytesWallet: 32 bytesSecp256k1: 16 bytesInvalidInput: 32 bytesRpcConnection: 32 bytesDepositAddressValidationFailed: 32 bytesTreeCreationError: 32 bytesFrostSigningError: 32 bytesFrostAggregationError: 32 bytesInvalidArgument: 32 bytesInvalidAddress: 32 bytesTransferError: 32 bytesCryptoError: 32 bytesAuthenticationError: 32 bytesInitializationError: 32 bytesGeneral: 32 bytesNoLeavesFound: 0 bytesNoLeafWithExactAmount: 0 bytesLeafSelectionError: 32 bytesInvalidHash: 32 bytesInvalidBitcoinTransaction: 32 bytesIoError: 32 bytesDecryptionError: 32 bytesSecretKeyNotFound: 32 bytesMissingKeyshareInfo: 32 bytesInvalidResponse: 32 bytesIo: 32 bytesBitcoinRpc: 32 bytesInvalidKeyshareConfig: 32 bytesInvalidTokenTransaction: 32 bytesTestDatabaseQueryError: 32 bytesSerdeJson: 16 bytesGraphQLError: 32 bytesGraphQLRequestFailed: 32 bytesDecodingError: 24 bytesLeafNotFound: 32 bytesFromUuidError: 40 bytesFaucetRequestFailed: 32 bytes