pub trait OpentsdbProtocolHandler {
// Required methods
fn preflight<'life0, 'life1, 'async_trait>(
&'life0 self,
data_points: &'life1 [DataPoint],
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn exec<'life0, 'async_trait>(
&'life0 self,
data_points: Vec<DataPoint>,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn exec_batch<'life0, 'async_trait>(
&'life0 self,
data_points: Vec<DataPoint>,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
Sourcefn preflight<'life0, 'life1, 'async_trait>(
&'life0 self,
data_points: &'life1 [DataPoint],
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn preflight<'life0, 'life1, 'async_trait>(
&'life0 self,
data_points: &'life1 [DataPoint],
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Checks all points in one external request before per-point debug execution.
fn exec<'life0, 'async_trait>(
&'life0 self,
data_points: Vec<DataPoint>,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn exec_batch<'life0, 'async_trait>(
&'life0 self,
data_points: Vec<DataPoint>,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn exec_batch<'life0, 'async_trait>(
&'life0 self,
data_points: Vec<DataPoint>,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Executes an ordinary HTTP put with optional batching. Debug callers
retain Self::exec; the frontend clears HTTP batching selection
there so diagnostic requests preserve direct, per-point error attribution.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".