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
sourceimpl 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
sourceimpl Clone for GnssInputType
impl Clone for GnssInputType
sourcefn clone(&self) -> GnssInputType
fn clone(&self) -> GnssInputType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for GnssInputType
impl Send for GnssInputType
impl Sync for GnssInputType
impl Unpin for GnssInputType
impl UnwindSafe for GnssInputType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more