Enum NmeaParseError
pub enum NmeaParseError {
EmptyFrame,
GarbageFrame,
InvalidFrame,
InvalidGnss,
InvalidSentenceFormatter(ParseError),
}Expand description
Errors that can occur while parsing NMEA frames.
Variants§
EmptyFrame
Got empty frame.
GarbageFrame
Got garbage data.
InvalidFrame
Got frame that does not fit NMEA 0183 standard or Quectel quirks.
InvalidGnss
Unknown or unmanaged GNSS.
InvalidSentenceFormatter(ParseError)
Unknown or unmanaged sentence formatter.
Trait Implementations§
§impl Debug for NmeaParseError
impl Debug for NmeaParseError
§impl Display for NmeaParseError
impl Display for NmeaParseError
impl Eq for NmeaParseError
§impl Error for NmeaParseError
impl Error for NmeaParseError
§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()
§impl From<NmeaParseError> for Error
impl From<NmeaParseError> for Error
§fn from(source: NmeaParseError) -> Self
fn from(source: NmeaParseError) -> Self
Converts to this type from the input type.
§impl From<ParseError> for NmeaParseError
impl From<ParseError> for NmeaParseError
§impl PartialEq for NmeaParseError
impl PartialEq for NmeaParseError
impl StructuralPartialEq for NmeaParseError
Auto Trait Implementations§
impl Freeze for NmeaParseError
impl RefUnwindSafe for NmeaParseError
impl Send for NmeaParseError
impl Sync for NmeaParseError
impl Unpin for NmeaParseError
impl UnsafeUnpin for NmeaParseError
impl UnwindSafe for NmeaParseError
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