pub struct Client<RT: HttpClientInterface> { /* private fields */ }Expand description
A telemetric client for reporting measurements to a server
Implementations§
Source§impl<RT: HttpClientInterface> Client<RT>
impl<RT: HttpClientInterface> Client<RT>
Sourcepub fn new(
runtime: RT,
uri: impl Into<String>,
software_id: impl Into<String>,
app_info: (impl Into<String>, impl Into<String>, impl Into<String>),
) -> Self
pub fn new( runtime: RT, uri: impl Into<String>, software_id: impl Into<String>, app_info: (impl Into<String>, impl Into<String>, impl Into<String>), ) -> Self
Create a new telemetric client app_info takes the form (qualifier, organization, application) and is used to locate where to store the telemetric data
Sourcepub fn enable_reporting(&self)
pub fn enable_reporting(&self)
Enable reporting of telemetric data
Sourcepub fn disable_reporting(&self)
pub fn disable_reporting(&self)
Disable reporting of telemetric data
Auto Trait Implementations§
impl<RT> !Freeze for Client<RT>
impl<RT> RefUnwindSafe for Client<RT>where
RT: RefUnwindSafe,
impl<RT> Send for Client<RT>where
RT: Send,
impl<RT> Sync for Client<RT>where
RT: Sync,
impl<RT> Unpin for Client<RT>where
RT: Unpin,
impl<RT> UnwindSafe for Client<RT>where
RT: UnwindSafe,
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