Enum ublox::PacketRef

source ·
pub enum PacketRef<'a> {
Show 56 variants NavPosLlh(NavPosLlhRef<'a>), NavStatus(NavStatusRef<'a>), NavDop(NavDopRef<'a>), NavPvt(NavPvtRef<'a>), NavSolution(NavSolutionRef<'a>), NavVelNed(NavVelNedRef<'a>), NavHpPosLlh(NavHpPosLlhRef<'a>), NavHpPosEcef(NavHpPosEcefRef<'a>), NavTimeUTC(NavTimeUTCRef<'a>), NavTimeLs(NavTimeLsRef<'a>), NavSat(NavSatRef<'a>), NavEoe(NavEoeRef<'a>), NavOdo(NavOdoRef<'a>), CfgOdo(CfgOdoRef<'a>), MgaAck(MgaAckRef<'a>), MgaGpsIono(MgaGpsIonoRef<'a>), MgaGpsEph(MgaGpsEphRef<'a>), MgaGloEph(MgaGloEphRef<'a>), AlpSrv(AlpSrvRef<'a>), AckAck(AckAckRef<'a>), AckNak(AckNakRef<'a>), CfgItfm(CfgItfmRef<'a>), CfgPrtI2c(CfgPrtI2cRef<'a>), CfgPrtSpi(CfgPrtSpiRef<'a>), CfgPrtUart(CfgPrtUartRef<'a>), CfgNav5(CfgNav5Ref<'a>), CfgAnt(CfgAntRef<'a>), CfgTmode2(CfgTmode2Ref<'a>), CfgTmode3(CfgTmode3Ref<'a>), CfgTp5(CfgTp5Ref<'a>), InfError(InfErrorRef<'a>), InfWarning(InfWarningRef<'a>), InfNotice(InfNoticeRef<'a>), InfTest(InfTestRef<'a>), InfDebug(InfDebugRef<'a>), RxmRawx(RxmRawxRef<'a>), TimTp(TimTpRef<'a>), TimTm2(TimTm2Ref<'a>), MonVer(MonVerRef<'a>), MonGnss(MonGnssRef<'a>), MonHw(MonHwRef<'a>), RxmRtcm(RxmRtcmRef<'a>), EsfMeas(EsfMeasRef<'a>), EsfIns(EsfInsRef<'a>), HnrAtt(HnrAttRef<'a>), HnrIns(HnrInsRef<'a>), HnrPvt(HnrPvtRef<'a>), NavAtt(NavAttRef<'a>), NavClock(NavClockRef<'a>), NavVelECEF(NavVelECEFRef<'a>), MgaGpsEPH(MgaGpsEPHRef<'a>), RxmSfrbx(RxmSfrbxRef<'a>), EsfRaw(EsfRawRef<'a>), TimSvin(TimSvinRef<'a>), SecUniqId(SecUniqIdRef<'a>), Unknown(UbxUnknownPacketRef<'a>),
}
Expand description

All possible packets enum

Variants§

§

NavPosLlh(NavPosLlhRef<'a>)

§

NavStatus(NavStatusRef<'a>)

§

NavDop(NavDopRef<'a>)

§

NavPvt(NavPvtRef<'a>)

§

NavSolution(NavSolutionRef<'a>)

§

NavVelNed(NavVelNedRef<'a>)

§

NavHpPosLlh(NavHpPosLlhRef<'a>)

§

NavHpPosEcef(NavHpPosEcefRef<'a>)

§

NavTimeUTC(NavTimeUTCRef<'a>)

§

NavTimeLs(NavTimeLsRef<'a>)

§

NavSat(NavSatRef<'a>)

§

NavEoe(NavEoeRef<'a>)

§

NavOdo(NavOdoRef<'a>)

§

CfgOdo(CfgOdoRef<'a>)

§

MgaAck(MgaAckRef<'a>)

§

MgaGpsIono(MgaGpsIonoRef<'a>)

§

MgaGpsEph(MgaGpsEphRef<'a>)

§

MgaGloEph(MgaGloEphRef<'a>)

§

AlpSrv(AlpSrvRef<'a>)

§

AckAck(AckAckRef<'a>)

§

AckNak(AckNakRef<'a>)

§

CfgItfm(CfgItfmRef<'a>)

§

CfgPrtI2c(CfgPrtI2cRef<'a>)

§

CfgPrtSpi(CfgPrtSpiRef<'a>)

§

CfgPrtUart(CfgPrtUartRef<'a>)

§

CfgNav5(CfgNav5Ref<'a>)

§

CfgAnt(CfgAntRef<'a>)

§

CfgTmode2(CfgTmode2Ref<'a>)

§

CfgTmode3(CfgTmode3Ref<'a>)

§

CfgTp5(CfgTp5Ref<'a>)

§

InfError(InfErrorRef<'a>)

§

InfWarning(InfWarningRef<'a>)

§

InfNotice(InfNoticeRef<'a>)

§

InfTest(InfTestRef<'a>)

§

InfDebug(InfDebugRef<'a>)

§

RxmRawx(RxmRawxRef<'a>)

§

TimTp(TimTpRef<'a>)

§

TimTm2(TimTm2Ref<'a>)

§

MonVer(MonVerRef<'a>)

§

MonGnss(MonGnssRef<'a>)

§

MonHw(MonHwRef<'a>)

§

RxmRtcm(RxmRtcmRef<'a>)

§

EsfMeas(EsfMeasRef<'a>)

§

EsfIns(EsfInsRef<'a>)

§

HnrAtt(HnrAttRef<'a>)

§

HnrIns(HnrInsRef<'a>)

§

HnrPvt(HnrPvtRef<'a>)

§

NavAtt(NavAttRef<'a>)

§

NavClock(NavClockRef<'a>)

§

NavVelECEF(NavVelECEFRef<'a>)

§

MgaGpsEPH(MgaGpsEPHRef<'a>)

§

RxmSfrbx(RxmSfrbxRef<'a>)

§

EsfRaw(EsfRawRef<'a>)

§

TimSvin(TimSvinRef<'a>)

§

SecUniqId(SecUniqIdRef<'a>)

§

Unknown(UbxUnknownPacketRef<'a>)

Implementations§

source§

impl<'a> PacketRef<'a>

source

pub fn class_and_msg_id(&self) -> (u8, u8)

Trait Implementations§

source§

impl<'a> Debug for PacketRef<'a>

source§

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

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

impl Serialize for PacketRef<'_>

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 PacketRef<'a>

§

impl<'a> Send for PacketRef<'a>

§

impl<'a> Sync for PacketRef<'a>

§

impl<'a> Unpin for PacketRef<'a>

§

impl<'a> UnwindSafe for PacketRef<'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.