pub struct GnssStatus {
pub enabled: bool,
pub fix: GnssSnapshot,
pub ident_update: bool,
pub ident_precision: u8,
pub time_trust: bool,
}Expand description
Everything a CAP_GNSS device reports about positioning: the switch,
the current fix, and the policy that governs what is done with it.
A report rather than a transaction, like RepeaterPolicy: the
properties are written separately, and reading this back after a
partial write shows exactly what the device holds.
Fields§
§enabled: boolPROP_GNSS_ENABLED: whether the receiver is powered. Everything in
fix reads as searching while this is false.
fix: GnssSnapshotThe five positioning telemetry properties, folded into one value.
ident_update: boolPROP_GNSS_IDENT_UPDATE: whether fixes refresh the advertised
node identity’s location.
ident_precision: u8PROP_GNSS_IDENT_PRECISION: location bytes the advertised
position is clamped to.
time_trust: boolPROP_GNSS_TIME_TRUST: whether receiver-derived time may set the
wall clock.
Trait Implementations§
Source§impl Clone for GnssStatus
impl Clone for GnssStatus
Source§fn clone(&self) -> GnssStatus
fn clone(&self) -> GnssStatus
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GnssStatus
impl Debug for GnssStatus
Source§impl PartialEq for GnssStatus
impl PartialEq for GnssStatus
impl Copy for GnssStatus
impl Eq for GnssStatus
impl StructuralPartialEq for GnssStatus
Auto Trait Implementations§
impl Freeze for GnssStatus
impl RefUnwindSafe for GnssStatus
impl Send for GnssStatus
impl Sync for GnssStatus
impl Unpin for GnssStatus
impl UnwindSafe for GnssStatus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)