Struct ublox::MgaAckRef

source ·
pub struct MgaAckRef<'a>(/* private fields */);
Expand description

GNSS Assistance ACK UBX-MGA-ACK Contains a reference to an underlying buffer, contains accessor methods to retrieve data.

Implementations§

source§

impl<'a> MgaAckRef<'a>

source

pub fn as_bytes(&self) -> &[u8]

source

pub fn ack_type(&self) -> u8

Type of acknowledgment: 0 -> not used, 1 -> accepted

source

pub fn version(&self) -> u8

Version 0

source

pub fn info_code_raw(&self) -> u8

Provides greater information on what the receiver chose to do with the message contents. See MsgAckInfoCode.

source

pub fn info_code(&self) -> MsgAckInfoCode

Provides greater information on what the receiver chose to do with the message contents. See MsgAckInfoCode.

source

pub fn msg_id(&self) -> u8

UBX message ID of the acknowledged message

source

pub fn msg_payload_start(&self) -> [u8; 4]

The first 4 bytes of the acknowledged message’s payload

Trait Implementations§

source§

impl Debug for MgaAckRef<'_>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Serialize for MgaAckRef<'_>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for MgaAckRef<'a>

§

impl<'a> Send for MgaAckRef<'a>

§

impl<'a> Sync for MgaAckRef<'a>

§

impl<'a> Unpin for MgaAckRef<'a>

§

impl<'a> UnwindSafe for MgaAckRef<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.