pub enum HyperJsonError {
InvalidConversion {
error: Error,
},
PyErr {
error: String,
},
DictKeyNotString {
obj: PyObject,
},
InvalidFloat {
x: String,
},
InvalidCast {
t: String,
e: String,
},
}
Variants§
Trait Implementations§
Source§impl Debug for HyperJsonError
impl Debug for HyperJsonError
Source§impl Display for HyperJsonError
impl Display for HyperJsonError
Source§impl Fail for HyperJsonError
impl Fail for HyperJsonError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<Error> for HyperJsonError
impl From<Error> for HyperJsonError
Source§fn from(error: Error) -> HyperJsonError
fn from(error: Error) -> HyperJsonError
Converts to this type from the input type.
Source§impl From<HyperJsonError> for PyErr
impl From<HyperJsonError> for PyErr
Source§fn from(h: HyperJsonError) -> PyErr
fn from(h: HyperJsonError) -> PyErr
Converts to this type from the input type.
Source§impl From<PyErr> for HyperJsonError
impl From<PyErr> for HyperJsonError
Source§fn from(error: PyErr) -> HyperJsonError
fn from(error: PyErr) -> HyperJsonError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HyperJsonError
impl !RefUnwindSafe for HyperJsonError
impl Send for HyperJsonError
impl Sync for HyperJsonError
impl Unpin for HyperJsonError
impl !UnwindSafe for HyperJsonError
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