pub enum JmapStateChangeParseError {
InvalidJson(Error),
UnexpectedType(String),
}Expand description
Failure causes from JmapStateChange::parse.
Variants§
InvalidJson(Error)
The payload is not valid JSON.
UnexpectedType(String)
The payload’s @type tag is not StateChange.
Trait Implementations§
Source§impl Debug for JmapStateChangeParseError
impl Debug for JmapStateChangeParseError
Source§impl Display for JmapStateChangeParseError
impl Display for JmapStateChangeParseError
Source§impl Error for JmapStateChangeParseError
impl Error for JmapStateChangeParseError
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<Error> for JmapStateChangeParseError
impl From<Error> for JmapStateChangeParseError
Source§impl From<JmapStateChangeParseError> for JmapEventSourceError
impl From<JmapStateChangeParseError> for JmapEventSourceError
Source§fn from(source: JmapStateChangeParseError) -> Self
fn from(source: JmapStateChangeParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JmapStateChangeParseError
impl RefUnwindSafe for JmapStateChangeParseError
impl Send for JmapStateChangeParseError
impl Sync for JmapStateChangeParseError
impl Unpin for JmapStateChangeParseError
impl UnsafeUnpin for JmapStateChangeParseError
impl UnwindSafe for JmapStateChangeParseError
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