pub struct TrackingChannelStateDepB {
pub state: u8,
pub sid: GnssSignalDep,
pub cn0: f32,
}
Expand description
Deprecated
Deprecated.
Fields
state: u8
Status of tracking channel
sid: GnssSignalDep
GNSS signal being tracked
cn0: f32
Carrier-to-noise density
Implementations
sourceimpl TrackingChannelStateDepB
impl TrackingChannelStateDepB
sourcepub fn tracking_mode(&self) -> Result<TrackingMode, u8>
pub fn tracking_mode(&self) -> Result<TrackingMode, u8>
Gets the TrackingMode stored in the state
bitfield.
Returns Ok
if the bitrange contains a known TrackingMode
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 TrackingMode
were added.
sourcepub fn set_tracking_mode(&mut self, tracking_mode: TrackingMode)
pub fn set_tracking_mode(&mut self, tracking_mode: TrackingMode)
Set the bitrange corresponding to the TrackingMode of the state
bitfield.
Trait Implementations
sourceimpl Clone for TrackingChannelStateDepB
impl Clone for TrackingChannelStateDepB
sourcefn clone(&self) -> TrackingChannelStateDepB
fn clone(&self) -> TrackingChannelStateDepB
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 TrackingChannelStateDepB
impl Send for TrackingChannelStateDepB
impl Sync for TrackingChannelStateDepB
impl Unpin for TrackingChannelStateDepB
impl UnwindSafe for TrackingChannelStateDepB
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