pub enum SdkError {
Show 14 variants
SparkError(String),
InsufficientFunds,
InvalidUuid(String),
InvalidInput(String),
NetworkError(String),
StorageError(String),
ChainServiceError(String),
MaxDepositClaimFeeExceeded {
tx: String,
vout: u32,
max_fee: Option<Fee>,
required_fee_sats: u64,
required_fee_rate_sat_per_vbyte: u64,
},
MissingUtxo {
tx: String,
vout: u32,
},
LnurlError(String),
Signer(String),
OptimizationAlreadyRunning,
OptimizationCancelled,
Generic(String),
}Expand description
Error type for the BreezSdk
Variants§
SparkError(String)
InsufficientFunds
InvalidUuid(String)
InvalidInput(String)
Invalid input error
NetworkError(String)
Network error
StorageError(String)
Storage error
ChainServiceError(String)
MaxDepositClaimFeeExceeded
Fields
MissingUtxo
LnurlError(String)
Signer(String)
OptimizationAlreadyRunning
optimize_leaves was called while another optimization run (auto or
manual) was already in flight.
OptimizationCancelled
optimize_leaves was preempted by the SDK to free leaves for a
higher-priority operation (typically a payment).
Generic(String)
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
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()
Source§impl From<ChainServiceError> for SdkError
impl From<ChainServiceError> for SdkError
Source§fn from(e: ChainServiceError) -> Self
fn from(e: ChainServiceError) -> Self
Converts to this type from the input type.
Source§impl From<ConversionError> for SdkError
impl From<ConversionError> for SdkError
Source§fn from(e: ConversionError) -> Self
fn from(e: ConversionError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for SdkError
impl From<Infallible> for SdkError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<SdkError> for ConversionError
impl From<SdkError> for ConversionError
Source§impl From<SdkError> for DepositClaimError
impl From<SdkError> for DepositClaimError
Source§impl From<StorageError> for SdkError
impl From<StorageError> for SdkError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for SdkError
impl From<SystemTimeError> for SdkError
Source§fn from(e: SystemTimeError) -> Self
fn from(e: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for SdkError
impl From<TryFromIntError> for SdkError
Source§fn from(e: TryFromIntError) -> Self
fn from(e: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SdkError
impl RefUnwindSafe for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl UnsafeUnpin for SdkError
impl UnwindSafe for SdkError
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,
§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> 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 moreSource§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.