Struct bitcoin_onchain::TxResolverError
source · pub struct TxResolverError {
pub txid: Txid,
pub err: Option<Box<dyn Error>>,
}
Expand description
unable to locate transaction {txid}
Fields§
§txid: Txid
transaction id causing the error
err: Option<Box<dyn Error>>
error message
Implementations§
source§impl TxResolverError
impl TxResolverError
sourcepub fn with(txid: Txid) -> TxResolverError
pub fn with(txid: Txid) -> TxResolverError
Convenience function for constructing resolver error from simple transaction id without error message
Trait Implementations§
source§impl Debug for TxResolverError
impl Debug for TxResolverError
source§impl Display for TxResolverError
impl Display for TxResolverError
source§impl Error for TxResolverError
impl Error for TxResolverError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TxResolverError> for String
impl From<TxResolverError> for String
source§fn from(err: TxResolverError) -> Self
fn from(err: TxResolverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TxResolverError
impl !RefUnwindSafe for TxResolverError
impl !Send for TxResolverError
impl !Sync for TxResolverError
impl Unpin for TxResolverError
impl !UnwindSafe for TxResolverError
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