#[repr(u8)]pub enum AivdmError {
Ok = 0,
NullInput = 1,
InvalidUtf8 = 2,
Nmea = 3,
IncompleteFragment = 4,
Fragment = 5,
Bit = 6,
Message = 7,
}Expand description
Error codes returned by aivdm_decode_line.
Variants§
Ok = 0
No error.
NullInput = 1
The line pointer was NULL.
InvalidUtf8 = 2
line was not valid UTF-8.
Nmea = 3
The NMEA sentence itself was malformed (bad checksum, wrong field count, unsupported talker/formatter, invalid armor character).
IncompleteFragment = 4
The sentence is one fragment of a multi-part message; this decode-only entry point only handles single-fragment sentences.
Fragment = 5
A fragment-reassembly error (not produced by this entry point, which does no reassembly, but reserved for API symmetry).
Bit = 6
The payload was truncated or otherwise malformed at the bit level.
Message = 7
The message type is unknown, or a field held an invalid value.
Trait Implementations§
Source§impl Clone for AivdmError
impl Clone for AivdmError
impl Copy for AivdmError
Source§impl Debug for AivdmError
impl Debug for AivdmError
impl Eq for AivdmError
Source§impl From<AisError> for AivdmError
impl From<AisError> for AivdmError
Source§impl PartialEq for AivdmError
impl PartialEq for AivdmError
impl StructuralPartialEq for AivdmError
Auto Trait Implementations§
impl Freeze for AivdmError
impl RefUnwindSafe for AivdmError
impl Send for AivdmError
impl Sync for AivdmError
impl Unpin for AivdmError
impl UnsafeUnpin for AivdmError
impl UnwindSafe for AivdmError
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