pub struct Sourcetable {
pub streams: Vec<StreamEntry>,
pub casters: Vec<CasterEntry>,
pub networks: Vec<NetworkEntry>,
}Expand description
A parsed NTRIP sourcetable containing available streams.
Fields§
§streams: Vec<StreamEntry>Stream entries (STR records)
casters: Vec<CasterEntry>Caster entries (CAS records)
networks: Vec<NetworkEntry>Network entries (NET records)
Implementations§
Source§impl Sourcetable
impl Sourcetable
Sourcepub fn rtcm_streams(&self) -> Vec<&StreamEntry>
pub fn rtcm_streams(&self) -> Vec<&StreamEntry>
Get all RTCM streams.
Sourcepub fn streams_by_distance(
&self,
lat: f64,
lon: f64,
) -> Vec<(&StreamEntry, f64)>
pub fn streams_by_distance( &self, lat: f64, lon: f64, ) -> Vec<(&StreamEntry, f64)>
Find streams sorted by distance to a reference position.
Sourcepub fn nearest_rtcm_stream(
&self,
lat: f64,
lon: f64,
) -> Option<(&StreamEntry, f64)>
pub fn nearest_rtcm_stream( &self, lat: f64, lon: f64, ) -> Option<(&StreamEntry, f64)>
Find the nearest RTCM stream to a reference position.
Sourcepub fn find_streams(&self, pattern: &str) -> Vec<&StreamEntry>
pub fn find_streams(&self, pattern: &str) -> Vec<&StreamEntry>
Find streams matching a mountpoint pattern (case-insensitive).
Trait Implementations§
Source§impl Clone for Sourcetable
impl Clone for Sourcetable
Source§fn clone(&self) -> Sourcetable
fn clone(&self) -> Sourcetable
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 Sourcetable
impl Debug for Sourcetable
Source§impl Default for Sourcetable
impl Default for Sourcetable
Source§fn default() -> Sourcetable
fn default() -> Sourcetable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sourcetable
impl RefUnwindSafe for Sourcetable
impl Send for Sourcetable
impl Sync for Sourcetable
impl Unpin for Sourcetable
impl UnwindSafe for Sourcetable
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