pub enum Constellation {
GPS,
GLONASS,
Galileo,
BeiDou,
QZSS,
SBAS,
NavIC,
Unknown(u8),
}Expand description
GNSS constellation identifier
Variants§
Implementations§
Source§impl Constellation
impl Constellation
Sourcepub fn from_gnss_id(id: u8) -> Self
pub fn from_gnss_id(id: u8) -> Self
Convert GNSS ID (from SBF GNSSId field) to Constellation
Per SBF Reference Guide:
- 0: GPS
- 1: SBAS
- 2: Galileo
- 3: BeiDou
- 4: IMES (not supported)
- 5: QZSS
- 6: GLONASS
- 7: NavIC/IRNSS
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Short name for the constellation
Trait Implementations§
Source§impl Clone for Constellation
impl Clone for Constellation
Source§fn clone(&self) -> Constellation
fn clone(&self) -> Constellation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Constellation
impl Debug for Constellation
Source§impl Display for Constellation
impl Display for Constellation
Source§impl Hash for Constellation
impl Hash for Constellation
Source§impl PartialEq for Constellation
impl PartialEq for Constellation
impl Copy for Constellation
impl Eq for Constellation
impl StructuralPartialEq for Constellation
Auto Trait Implementations§
impl Freeze for Constellation
impl RefUnwindSafe for Constellation
impl Send for Constellation
impl Sync for Constellation
impl Unpin for Constellation
impl UnsafeUnpin for Constellation
impl UnwindSafe for Constellation
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