Struct sbp::messages::solution_meta::gnss_input_type::GnssInputType
source · pub struct GnssInputType {
pub flags: u8,
}
Expand description
Instruments the physical type of GNSS sensor input to the fuzed solution
Metadata around the GNSS sensors involved in the fuzed solution. Accessible through sol_in[N].flags in a MSG_SOLN_META.
Fields§
§flags: u8
flags that store all relevant info specific to this sensor type.
Implementations§
source§impl GnssInputType
impl GnssInputType
sourcepub fn type_of_gnss_measurement(&self) -> Result<TypeOfGnssMeasurement, u8>
pub fn type_of_gnss_measurement(&self) -> Result<TypeOfGnssMeasurement, u8>
Gets the TypeOfGnssMeasurement stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known TypeOfGnssMeasurement
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 TypeOfGnssMeasurement
were added.
sourcepub fn set_type_of_gnss_measurement(
&mut self,
type_of_gnss_measurement: TypeOfGnssMeasurement
)
pub fn set_type_of_gnss_measurement( &mut self, type_of_gnss_measurement: TypeOfGnssMeasurement )
Set the bitrange corresponding to the TypeOfGnssMeasurement of the flags
bitfield.
Trait Implementations§
source§impl Clone for GnssInputType
impl Clone for GnssInputType
source§fn clone(&self) -> GnssInputType
fn clone(&self) -> GnssInputType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GnssInputType
impl Debug for GnssInputType
source§impl<'de> Deserialize<'de> for GnssInputType
impl<'de> Deserialize<'de> for GnssInputType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 GnssInputType
impl PartialEq for GnssInputType
source§fn eq(&self, other: &GnssInputType) -> bool
fn eq(&self, other: &GnssInputType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GnssInputType
impl Serialize for GnssInputType
impl StructuralPartialEq for GnssInputType
Auto Trait Implementations§
impl Freeze for GnssInputType
impl RefUnwindSafe for GnssInputType
impl Send for GnssInputType
impl Sync for GnssInputType
impl Unpin for GnssInputType
impl UnwindSafe for GnssInputType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more