[−][src]Struct ais::sentence::AisParser
Methods
impl AisParser
[src]
pub fn new() -> Self
[src]
Creates a new AisParser
instance
pub fn parse<'a>(
&mut self,
line: &'a [u8],
decode: bool
) -> Result<AisFragments<'a>>
[src]
&mut self,
line: &'a [u8],
decode: bool
) -> Result<AisFragments<'a>>
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 message
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,