pub struct GnssConfig {
pub default_enabled: bool,
}Expand description
That this board has a GNSS receiver (CAP_GNSS).
Dependent on TimeConfig: a board that advertises this without a
wall clock would be claiming a time source for a clock it does not
have.
Fields§
§default_enabled: boolPost-reset value of PROP_GNSS_ENABLED.
Off almost everywhere, because on a battery a receiver nobody asked for is the largest thing on the bill. The exception is a board whose whole job is to sit outdoors and know where it is — there, off is the surprising answer, and a fixed node that has to be told to find itself after every reset is a worse default than the power it costs.
This is the post-reset value, so it decides only what an
unconfigured board does. A saved snapshot overrides it in either
direction, and CMD_RST returns to it.
Implementations§
Trait Implementations§
Source§impl Clone for GnssConfig
impl Clone for GnssConfig
Source§fn clone(&self) -> GnssConfig
fn clone(&self) -> GnssConfig
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 GnssConfig
impl Debug for GnssConfig
Source§impl PartialEq for GnssConfig
impl PartialEq for GnssConfig
impl Copy for GnssConfig
impl Eq for GnssConfig
impl StructuralPartialEq for GnssConfig
Auto Trait Implementations§
impl Freeze for GnssConfig
impl RefUnwindSafe for GnssConfig
impl Send for GnssConfig
impl Sync for GnssConfig
impl Unpin for GnssConfig
impl UnwindSafe for GnssConfig
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)