[][src]Struct ais::sentence::AisSentence

pub struct AisSentence<'a> {
    pub talker_id: TalkerId,
    pub report_type: AisReportType,
    pub num_fragments: u8,
    pub fragment_number: u8,
    pub message_id: Option<u8>,
    pub channel: Option<char>,
    pub data: Cow<'a, [u8]>,
    pub fill_bit_count: u8,
    pub message_type: u8,
    pub message: Option<AisMessage>,
}

Represents an NMEA sentence parsed as AIS

Fields

talker_id: TalkerIdreport_type: AisReportTypenum_fragments: u8fragment_number: u8message_id: Option<u8>channel: Option<char>data: Cow<'a, [u8]>fill_bit_count: u8message_type: u8message: Option<AisMessage>

Methods

impl<'a> AisSentence<'a>[src]

pub fn has_more(&self) -> bool[src]

Returns whether there are more fragments to come

pub fn is_fragment(&self) -> bool[src]

Returns whether this is part of a fragmented message set

Trait Implementations

impl<'a> Debug for AisSentence<'a>[src]

impl<'a> PartialEq<AisSentence<'a>> for AisSentence<'a>[src]

impl<'a> StructuralPartialEq for AisSentence<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AisSentence<'a>

impl<'a> Send for AisSentence<'a>

impl<'a> Sync for AisSentence<'a>

impl<'a> Unpin for AisSentence<'a>

impl<'a> UnwindSafe for AisSentence<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.