pub enum Fix {
None,
TwoDimensional,
ThreeDimensional,
DGPS,
PPS,
Other(String),
}
Expand description
Type of the GPS fix.
Variants§
None
The GPS had no fix. To signify “the fix info is unknown”, leave out the Fix entirely.
TwoDimensional
2D fix gives only longitude and latitude. It needs a minimum of 3 satellites.
ThreeDimensional
3D fix gives longitude, latitude and altitude. It needs a minimum of 4 satellites.
DGPS
Differential Global Positioning System.
PPS
Military signal.
Other(String)
Other values that are not in the specification.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fix
impl<'de> Deserialize<'de> for Fix
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Fix
Auto Trait Implementations§
impl RefUnwindSafe for Fix
impl Send for Fix
impl Sync for Fix
impl Unpin for Fix
impl UnwindSafe for Fix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more