pub struct UlcpGnssSettingsRecord {
pub enabled: bool,
pub ident_update: bool,
pub ident_precision: u8,
pub time_trust: bool,
}Expand description
The device’s positioning policy: whether the receiver runs, and what is done with what it finds.
Read and written as a whole, like UlcpRepeaterSettingsRecord and
for the same reason — a receiver switched on under half a policy
starts advertising a position nobody just agreed to. enabled is
written last so the rest is already in force when it does.
Fields§
§enabled: boolPROP_GNSS_ENABLED: whether the receiver is powered. Off is the
lowest power state the board can reach, and on most of them the
receiver is the largest continuous load there is.
ident_update: boolPROP_GNSS_IDENT_UPDATE: whether fixes refresh the location the
node advertises in its identity.
ident_precision: u8PROP_GNSS_IDENT_PRECISION: how many location bytes that
advertised position is clamped to, 1 (coarsest) through 7. This is
a disclosure control — see ulcp_location_cell_meters.
time_trust: boolPROP_GNSS_TIME_TRUST: whether receiver-derived time may set the
wall clock. Cleared, a hand-set clock is safe from a jammed or
spoofed sky; position reporting is unaffected.
Trait Implementations§
Source§impl Clone for UlcpGnssSettingsRecord
impl Clone for UlcpGnssSettingsRecord
Source§fn clone(&self) -> UlcpGnssSettingsRecord
fn clone(&self) -> UlcpGnssSettingsRecord
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for UlcpGnssSettingsRecord
impl<UT> ConvertError<UT> for UlcpGnssSettingsRecord
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for UlcpGnssSettingsRecord
impl Debug for UlcpGnssSettingsRecord
Source§impl<UT> FfiConverter<UT> for UlcpGnssSettingsRecord
impl<UT> FfiConverter<UT> for UlcpGnssSettingsRecord
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for UlcpGnssSettingsRecord
impl<UT> Lift<UT> for UlcpGnssSettingsRecord
Source§impl<UT> LiftRef<UT> for UlcpGnssSettingsRecord
impl<UT> LiftRef<UT> for UlcpGnssSettingsRecord
Source§impl<UT> LiftReturn<UT> for UlcpGnssSettingsRecord
impl<UT> LiftReturn<UT> for UlcpGnssSettingsRecord
Source§type ReturnType = <UlcpGnssSettingsRecord as Lift<UT>>::FfiType
type ReturnType = <UlcpGnssSettingsRecord as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for UlcpGnssSettingsRecord
impl<UT> Lower<UT> for UlcpGnssSettingsRecord
type FfiType = <UlcpGnssSettingsRecord as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for UlcpGnssSettingsRecord
impl<UT> LowerError<UT> for UlcpGnssSettingsRecord
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for UlcpGnssSettingsRecord
impl<UT> LowerReturn<UT> for UlcpGnssSettingsRecord
Source§type ReturnType = <UlcpGnssSettingsRecord as Lower<UT>>::FfiType
type ReturnType = <UlcpGnssSettingsRecord as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for UlcpGnssSettingsRecord
impl PartialEq for UlcpGnssSettingsRecord
Source§impl<UT> TypeId<UT> for UlcpGnssSettingsRecord
impl<UT> TypeId<UT> for UlcpGnssSettingsRecord
impl Copy for UlcpGnssSettingsRecord
impl Eq for UlcpGnssSettingsRecord
impl StructuralPartialEq for UlcpGnssSettingsRecord
Auto Trait Implementations§
impl Freeze for UlcpGnssSettingsRecord
impl RefUnwindSafe for UlcpGnssSettingsRecord
impl Send for UlcpGnssSettingsRecord
impl Sync for UlcpGnssSettingsRecord
impl Unpin for UlcpGnssSettingsRecord
impl UnwindSafe for UlcpGnssSettingsRecord
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
§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)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.