pub struct PackedOsrContent {
    pub p: u32,
    pub l: CarrierPhase,
    pub lock: u8,
    pub flags: u8,
    pub sid: GnssSignal,
    pub iono_std: u16,
    pub tropo_std: u16,
    pub range_std: u16,
}
Expand description

Network correction for a particular satellite signal

Pseudorange and carrier phase network corrections for a satellite signal.

Fields§

§p: u32

Pseudorange observation

§l: CarrierPhase

Carrier phase observation with typical sign convention.

§lock: u8

Lock timer. This value gives an indication of the time for which a signal has maintained continuous phase lock. Whenever a signal has lost and regained lock, this value is reset to zero. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. Valid values range from 0 to 15 and the most significant nibble is reserved for future use.

§flags: u8

Correction flags.

§sid: GnssSignal

GNSS signal identifier (16 bit)

§iono_std: u16

Slant ionospheric correction standard deviation

§tropo_std: u16

Slant tropospheric correction standard deviation

§range_std: u16

Orbit/clock/bias correction projected on range standard deviation

Implementations§

source§

impl PackedOsrContent

source

pub fn invalid_phase_corrections(&self) -> Result<InvalidPhaseCorrections, u8>

Gets the InvalidPhaseCorrections stored in the flags bitfield.

Returns Ok if the bitrange contains a known InvalidPhaseCorrections variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of InvalidPhaseCorrections were added.

source

pub fn set_invalid_phase_corrections( &mut self, invalid_phase_corrections: InvalidPhaseCorrections )

Set the bitrange corresponding to the InvalidPhaseCorrections of the flags bitfield.

source

pub fn invalid_code_corrections(&self) -> Result<InvalidCodeCorrections, u8>

Gets the InvalidCodeCorrections stored in the flags bitfield.

Returns Ok if the bitrange contains a known InvalidCodeCorrections variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of InvalidCodeCorrections were added.

source

pub fn set_invalid_code_corrections( &mut self, invalid_code_corrections: InvalidCodeCorrections )

Set the bitrange corresponding to the InvalidCodeCorrections of the flags bitfield.

source

pub fn full_fixing_flag(&self) -> Result<FullFixingFlag, u8>

Gets the FullFixingFlag stored in the flags bitfield.

Returns Ok if the bitrange contains a known FullFixingFlag variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of FullFixingFlag were added.

source

pub fn set_full_fixing_flag(&mut self, full_fixing_flag: FullFixingFlag)

Set the bitrange corresponding to the FullFixingFlag of the flags bitfield.

source

pub fn partial_fixing_flag(&self) -> Result<PartialFixingFlag, u8>

Gets the PartialFixingFlag stored in the flags bitfield.

Returns Ok if the bitrange contains a known PartialFixingFlag variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of PartialFixingFlag were added.

source

pub fn set_partial_fixing_flag( &mut self, partial_fixing_flag: PartialFixingFlag )

Set the bitrange corresponding to the PartialFixingFlag of the flags bitfield.

source

pub fn correction_validity(&self) -> Result<CorrectionValidity, u8>

Gets the CorrectionValidity stored in the flags bitfield.

Returns Ok if the bitrange contains a known CorrectionValidity variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of CorrectionValidity were added.

source

pub fn set_correction_validity( &mut self, correction_validity: CorrectionValidity )

Set the bitrange corresponding to the CorrectionValidity of the flags bitfield.

Trait Implementations§

source§

impl Clone for PackedOsrContent

source§

fn clone(&self) -> PackedOsrContent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PackedOsrContent

source§

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

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

impl<'de> Deserialize<'de> for PackedOsrContent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for PackedOsrContent

source§

fn eq(&self, other: &PackedOsrContent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for PackedOsrContent

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
source§

impl StructuralPartialEq for PackedOsrContent

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,