Struct bitcoin_explorer::parser::errors::OpError
source · pub struct OpError {
pub kind: OpErrorKind,
pub message: String,
}
Expand description
Custom error type
Fields§
§kind: OpErrorKind
§message: String
Implementations§
Trait Implementations§
source§impl Error for OpError
impl Error for OpError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<FromUtf8Error> for OpError
impl From<FromUtf8Error> for OpError
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for OpError
impl<T> From<PoisonError<T>> for OpError
source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OpError
impl Send for OpError
impl Sync for OpError
impl Unpin for OpError
impl !UnwindSafe for OpError
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