pub enum Error {
DecodeHex(HexToArrayError),
IdMismatch,
InvalidCookieFile,
Io(Error),
JsonRpc(Error),
Model(Box<dyn Error + Send + Sync + 'static>),
ParseInt(ParseIntError),
Response(String),
SerdeJson(Error),
}Expand description
Error
Variants§
DecodeHex(HexToArrayError)
Bitcoin hex parsing error
IdMismatch
mismatched IDs
InvalidCookieFile
Invalid cookie file
Io(Error)
std::io
JsonRpc(Error)
jsonrpc
Model(Box<dyn Error + Send + Sync + 'static>)
error modeling a corepc type
ParseInt(ParseIntError)
parse integer
Response(String)
Error returned in the response
SerdeJson(Error)
serde_json
Trait Implementations§
Source§impl Error for Error
impl Error for 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 From<HexToArrayError> for Error
impl From<HexToArrayError> for Error
Source§fn from(e: HexToArrayError) -> Self
fn from(e: HexToArrayError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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