pub struct Policy {
pub trust_time: bool,
pub update_identity: bool,
pub identity_precision: u8,
}Expand description
The policy a fix is folded in under: everything the device domain says about what to do with one.
Passed in per fix rather than read from a static, because it comes from the ULCP device-domain mirror and the sink has no business holding a second copy of it.
Fields§
§trust_time: boolPROP_GNSS_TIME_TRUST: whether the receiver may set the clock.
update_identity: boolPROP_GNSS_IDENT_UPDATE: whether fixes refresh the advertised
node identity’s location.
identity_precision: u8PROP_GNSS_IDENT_PRECISION: what the advertised location is
clamped to.
Trait Implementations§
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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)