pub enum ChainViewError {
NotFound {
txid: Txid,
vout: u32,
},
Transport(String),
Decode(String),
Config(String),
}Expand description
Errors surfaced by a ChainView implementation.
Variants§
NotFound
The requested outpoint is not visible on the chain view’s endpoint.
Transport(String)
Network / transport error contacting the backing endpoint. Callers MUST NOT treat this as “no divergence”; it’s an inconclusive read and the responder is expected to refuse signing.
Decode(String)
The backing endpoint returned a malformed response the client could not decode.
Config(String)
The chain view was misconfigured (e.g. an invalid base URL).
Trait Implementations§
Source§impl Debug for ChainViewError
impl Debug for ChainViewError
Source§impl Display for ChainViewError
impl Display for ChainViewError
Source§impl Error for ChainViewError
impl Error for ChainViewError
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()
Auto Trait Implementations§
impl Forget for ChainViewError
impl Freeze for ChainViewError
impl Move for ChainViewError
impl RefUnwindSafe for ChainViewError
impl Send for ChainViewError
impl Sync for ChainViewError
impl Unpin for ChainViewError
impl UnsafeUnpin for ChainViewError
impl UnwindSafe for ChainViewError
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