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