pub struct Telemetry { /* private fields */ }Implementations§
Source§impl Telemetry
impl Telemetry
Sourcepub fn new(
client_key: &str,
app_version: &str,
directory: &Path,
) -> Option<Self>
pub fn new( client_key: &str, app_version: &str, directory: &Path, ) -> Option<Self>
Events are appended to a per-invocation log in directory, which stays
locked while the process lives. Logs of exited processes are sent at most
once every five minutes.
Uploads use shared environment/native proxy discovery from asimov-http.
Redirects are not followed; failed uploads remain queued for a later flush.
pub fn log(&self, event: Event)
Auto Trait Implementations§
impl !Freeze for Telemetry
impl RefUnwindSafe for Telemetry
impl Send for Telemetry
impl Sync for Telemetry
impl Unpin for Telemetry
impl UnsafeUnpin for Telemetry
impl UnwindSafe for Telemetry
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