pub trait PerfIsolate: Send + Sync {
// Required methods
fn begin_request(&self, id: &str, key: &str);
fn end_request(
&self,
id: &str,
key: &str,
err: BuckyErrorCode,
bytes: Option<u32>,
);
fn acc(&self, id: &str, err: BuckyErrorCode, size: Option<u64>);
fn action(&self, id: &str, err: BuckyErrorCode, name: &str, value: &str);
fn record(&self, id: &str, total: u64, total_size: Option<u64>);
}Required Methods§
fn begin_request(&self, id: &str, key: &str)
fn end_request( &self, id: &str, key: &str, err: BuckyErrorCode, bytes: Option<u32>, )
fn acc(&self, id: &str, err: BuckyErrorCode, size: Option<u64>)
fn action(&self, id: &str, err: BuckyErrorCode, name: &str, value: &str)
fn record(&self, id: &str, total: u64, total_size: Option<u64>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".