pub struct UsageAgent { /* private fields */ }Implementations§
Source§impl UsageAgent
impl UsageAgent
pub fn try_new( token: &str, endpoint: String, target_id: Option<String>, buffer_size: usize, connect_timeout: Duration, request_timeout: Duration, accept_invalid_certs: bool, flush_interval: Duration, user_agent: String, ) -> Result<Arc<Self>, AgentError>
pub async fn send_report(&self, report: Report) -> Result<(), AgentError>
pub async fn flush(&self)
pub async fn start_flush_interval(&self, token: Option<CancellationToken>)
Auto Trait Implementations§
impl !Freeze for UsageAgent
impl !RefUnwindSafe for UsageAgent
impl Send for UsageAgent
impl Sync for UsageAgent
impl Unpin for UsageAgent
impl !UnwindSafe for UsageAgent
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