pub trait PromStoreProtocolInterceptor {
type Error: ErrorExt;
// Provided methods
fn pre_write(
&self,
_write_req: &RowInsertRequests,
_ctx: QueryContextRef,
) -> Result<(), Self::Error> { ... }
fn pre_read(
&self,
_read_req: &ReadRequest,
_ctx: QueryContextRef,
) -> Result<(), Self::Error> { ... }
}Expand description
PromStoreProtocolInterceptor can track life cycle of a prom store request and customize or abort its execution at given point.
Required Associated Types§
Provided Methods§
fn pre_write( &self, _write_req: &RowInsertRequests, _ctx: QueryContextRef, ) -> Result<(), Self::Error>
fn pre_read( &self, _read_req: &ReadRequest, _ctx: QueryContextRef, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".