#[non_exhaustive]pub enum RuntimeError<L2 = Infallible>where
L2: Error,{
Load(LoadError<L2>),
Store(StoreError<L2>),
ConstructPsbt(ConstructionError),
Electrum(Error),
Esplora(Error),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Load(LoadError<L2>)
Store(StoreError<L2>)
ConstructPsbt(ConstructionError)
Electrum(Error)
error querying electrum server.
{0}
Esplora(Error)
error querying esplora server.
{0}
Trait Implementations§
Source§impl<L2> Debug for RuntimeError<L2>
impl<L2> Debug for RuntimeError<L2>
Source§impl<L2> Display for RuntimeError<L2>where
L2: Error,
impl<L2> Display for RuntimeError<L2>where
L2: Error,
Source§impl<L2> Error for RuntimeError<L2>where
L2: Error,
impl<L2> Error for RuntimeError<L2>where
L2: Error,
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<L2> From<ConstructionError> for RuntimeError<L2>where
L2: Error,
impl<L2> From<ConstructionError> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: ConstructionError) -> RuntimeError<L2>
fn from(v: ConstructionError) -> RuntimeError<L2>
Converts to this type from the input type.
Source§impl<L2> From<Error> for RuntimeError<L2>where
L2: Error,
impl<L2> From<Error> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: Error) -> RuntimeError<L2>
fn from(v: Error) -> RuntimeError<L2>
Converts to this type from the input type.
Source§impl<L2> From<Error> for RuntimeError<L2>where
L2: Error,
impl<L2> From<Error> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: Error) -> RuntimeError<L2>
fn from(v: Error) -> RuntimeError<L2>
Converts to this type from the input type.
Source§impl<L2> From<LoadError<L2>> for RuntimeError<L2>where
L2: Error,
impl<L2> From<LoadError<L2>> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: LoadError<L2>) -> RuntimeError<L2>
fn from(v: LoadError<L2>) -> RuntimeError<L2>
Converts to this type from the input type.
Source§impl<L2> From<StoreError<L2>> for RuntimeError<L2>where
L2: Error,
impl<L2> From<StoreError<L2>> for RuntimeError<L2>where
L2: Error,
Source§fn from(v: StoreError<L2>) -> RuntimeError<L2>
fn from(v: StoreError<L2>) -> RuntimeError<L2>
Converts to this type from the input type.
Auto Trait Implementations§
impl<L2> Freeze for RuntimeError<L2>where
L2: Freeze,
impl<L2 = Infallible> !RefUnwindSafe for RuntimeError<L2>
impl<L2> Send for RuntimeError<L2>where
L2: Send,
impl<L2> Sync for RuntimeError<L2>where
L2: Sync,
impl<L2> Unpin for RuntimeError<L2>where
L2: Unpin,
impl<L2 = Infallible> !UnwindSafe for RuntimeError<L2>
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> 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<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type