pub struct AisParser { /* private fields */ }
Implementations§
source§impl AisParser
impl AisParser
sourcepub fn parse(&mut self, line: &[u8], decode: bool) -> Result<AisFragments>
pub fn parse(&mut self, line: &[u8], decode: bool) -> Result<AisFragments>
Parses line
as an NMEA sentence, checking the checksum and returning an
an AisSentence
. Note that several AisSentence
s might be required to
complete a message, if they are fragments
If decode
is true
, the internal AIS message will also be parsed
If it is false
, then internal AIS messages will be ignored.
In both cases, AIS data will be passed along raw.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AisParser
impl Send for AisParser
impl Sync for AisParser
impl Unpin for AisParser
impl UnwindSafe for AisParser
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