pub enum NativeCallJsonError {
Runtime(NativeRuntimeError),
Encode(Error),
Reply(ReplyError),
}Expand description
Failure from NativeChannel::call_json.
Variants§
Runtime(NativeRuntimeError)
The native worker or managed call failed.
Encode(Error)
The request could not be serialized as JSON.
Reply(ReplyError)
Phoenix rejected the call or its response could not be decoded.
Trait Implementations§
Source§impl Debug for NativeCallJsonError
impl Debug for NativeCallJsonError
Source§impl Display for NativeCallJsonError
impl Display for NativeCallJsonError
Source§impl Error for NativeCallJsonError
impl Error for NativeCallJsonError
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<NativeRuntimeError> for NativeCallJsonError
impl From<NativeRuntimeError> for NativeCallJsonError
Source§fn from(source: NativeRuntimeError) -> Self
fn from(source: NativeRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<ReplyError> for NativeCallJsonError
impl From<ReplyError> for NativeCallJsonError
Source§fn from(source: ReplyError) -> Self
fn from(source: ReplyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeCallJsonError
impl !RefUnwindSafe for NativeCallJsonError
impl Send for NativeCallJsonError
impl Sync for NativeCallJsonError
impl Unpin for NativeCallJsonError
impl UnsafeUnpin for NativeCallJsonError
impl !UnwindSafe for NativeCallJsonError
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