pub enum EventDecodeError {
InvalidJson(String),
InvalidEvent(String),
}Expand description
Error returned by decode_protocol_event.
Variants§
InvalidJson(String)
text is not valid JSON.
InvalidEvent(String)
The parsed JSON value failed strict protocol validation.
Trait Implementations§
Source§impl Clone for EventDecodeError
impl Clone for EventDecodeError
Source§fn clone(&self) -> EventDecodeError
fn clone(&self) -> EventDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventDecodeError
impl Debug for EventDecodeError
Source§impl Display for EventDecodeError
impl Display for EventDecodeError
impl Eq for EventDecodeError
Source§impl Error for EventDecodeError
impl Error for EventDecodeError
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 PartialEq for EventDecodeError
impl PartialEq for EventDecodeError
impl StructuralPartialEq for EventDecodeError
Auto Trait Implementations§
impl Freeze for EventDecodeError
impl RefUnwindSafe for EventDecodeError
impl Send for EventDecodeError
impl Sync for EventDecodeError
impl Unpin for EventDecodeError
impl UnsafeUnpin for EventDecodeError
impl UnwindSafe for EventDecodeError
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