pub trait AsyncBlockProcessor {
// Required methods
fn on_begin_async_scope(
&mut self,
block_id: &str,
scope: BorrowedScopeDesc<'_>,
ts: i64,
span_id: i64,
parent_span_id: i64,
depth: u32,
) -> Result<bool, Error>;
fn on_end_async_scope(
&mut self,
block_id: &str,
scope: BorrowedScopeDesc<'_>,
ts: i64,
span_id: i64,
parent_span_id: i64,
depth: u32,
) -> Result<bool, Error>;
}Expand description
Trait for processing async event blocks.
Required Methods§
fn on_begin_async_scope( &mut self, block_id: &str, scope: BorrowedScopeDesc<'_>, ts: i64, span_id: i64, parent_span_id: i64, depth: u32, ) -> Result<bool, Error>
fn on_end_async_scope( &mut self, block_id: &str, scope: BorrowedScopeDesc<'_>, ts: i64, span_id: i64, parent_span_id: i64, depth: u32, ) -> Result<bool, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".