pub trait UsageAgentExt {
// Required methods
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_flush_interval<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 CancellationToken,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn add_report<'life0, 'async_trait>(
&'life0 self,
execution_report: ExecutionReport,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_report_with_request<'life0, 'async_trait>(
&'life0 self,
execution_report: ExecutionReport,
request: Option<RequestDetails>,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn builder() -> UsageAgentBuilder { ... }
}Required Methods§
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_flush_interval<'life0, 'life1, 'async_trait>(
&'life0 self,
token: &'life1 CancellationToken,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn add_report<'life0, 'async_trait>(
&'life0 self,
execution_report: ExecutionReport,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
👎Deprecated: use add_report_with_request instead
fn add_report<'life0, 'async_trait>(
&'life0 self,
execution_report: ExecutionReport,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
use add_report_with_request instead
Deprecated: use [add_report_with_request] instead.
This method will be removed in a future version major.
fn add_report_with_request<'life0, 'async_trait>(
&'life0 self,
execution_report: ExecutionReport,
request: Option<RequestDetails>,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn builder() -> UsageAgentBuilder
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".