pub enum JsonError {
SbpMsgParseError(SbpMsgParseError),
CrcError(CrcError),
WriteFrameError(WriteFrameError),
IoError(Error),
Base64Error(DecodeError),
InvalidMsg(InvalidMsgInput),
SerdeJsonError(Error),
}
Expand description
All possible error types when encoding/decoding a stream of json messages.
Variants§
SbpMsgParseError(SbpMsgParseError)
CrcError(CrcError)
WriteFrameError(WriteFrameError)
IoError(Error)
Base64Error(DecodeError)
InvalidMsg(InvalidMsgInput)
SerdeJsonError(Error)
Trait Implementations§
source§impl Error for JsonError
impl Error for JsonError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for JsonError
impl From<DecodeError> for JsonError
source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<SbpMsgParseError> for JsonError
impl From<SbpMsgParseError> for JsonError
source§fn from(e: SbpMsgParseError) -> Self
fn from(e: SbpMsgParseError) -> Self
Converts to this type from the input type.
source§impl HandleParseError<Json2JsonInput> for JsonError
impl HandleParseError<Json2JsonInput> for JsonError
fn handle_parse_error(self) -> Json2JsonInput
source§impl HandleParseError<Sbp> for JsonError
impl HandleParseError<Sbp> for JsonError
fn handle_parse_error(self) -> Sbp
Auto Trait Implementations§
impl Freeze for JsonError
impl !RefUnwindSafe for JsonError
impl Send for JsonError
impl Sync for JsonError
impl Unpin for JsonError
impl !UnwindSafe for JsonError
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