pub struct NTRIPClient { /* private fields */ }Expand description
NTRIPClient allows to connect to a remote NTRIP server (v1 and v2 both supported), to receiver RTCM messages. NTRIPClient supports both V1 and V2 NTRIP.
Implementations§
Source§impl NTRIPClient
impl NTRIPClient
Sourcepub fn with_credentials(&self, user: &str, password: &str) -> Self
pub fn with_credentials(&self, user: &str, password: &str) -> Self
Update NTRIPClient with desired credentials
Sourcepub fn set_credentials(&mut self, user: &str, password: &str)
pub fn set_credentials(&mut self, user: &str, password: &str)
Define NTRIPClient credentials, with mutable access.
Sourcepub async fn run(&mut self) -> Result<(), NTRIPClientError>
pub async fn run(&mut self) -> Result<(), NTRIPClientError>
Deploy this NTRIPClient using tokio framework.
Trait Implementations§
Source§impl Clone for NTRIPClient
impl Clone for NTRIPClient
Source§fn clone(&self) -> NTRIPClient
fn clone(&self) -> NTRIPClient
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 moreAuto Trait Implementations§
impl Freeze for NTRIPClient
impl RefUnwindSafe for NTRIPClient
impl Send for NTRIPClient
impl Sync for NTRIPClient
impl Unpin for NTRIPClient
impl UnwindSafe for NTRIPClient
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