pub struct Instance {Show 13 fields
catalog_manager: CatalogManagerRef,
pipeline_operator: Arc<PipelineOperator>,
statement_executor: Arc<StatementExecutor>,
query_engine: QueryEngineRef,
plugins: Plugins,
inserter: InserterRef,
deleter: DeleterRef,
table_metadata_manager: TableMetadataManagerRef,
event_recorder: Option<EventRecorderRef>,
process_manager: ProcessManagerRef,
slow_query_options: SlowQueryOptions,
suspend: Arc<AtomicBool>,
otlp_metrics_table_legacy_cache: DashMap<String, DashMap<String, bool>>,
}Expand description
The frontend instance contains necessary components, and implements many
traits, like servers::query_handler::grpc::GrpcQueryHandler,
servers::query_handler::sql::SqlQueryHandler, etc.
Fields§
§catalog_manager: CatalogManagerRef§pipeline_operator: Arc<PipelineOperator>§statement_executor: Arc<StatementExecutor>§query_engine: QueryEngineRef§plugins: Plugins§inserter: InserterRef§deleter: DeleterRef§table_metadata_manager: TableMetadataManagerRef§event_recorder: Option<EventRecorderRef>§process_manager: ProcessManagerRef§slow_query_options: SlowQueryOptions§suspend: Arc<AtomicBool>§otlp_metrics_table_legacy_cache: DashMap<String, DashMap<String, bool>>Implementations§
Source§impl Instance
impl Instance
Sourcefn build_dashboard_schema() -> (String, Vec<String>, Vec<ColumnDef>)
fn build_dashboard_schema() -> (String, Vec<String>, Vec<ColumnDef>)
Build a schema for dashboard table. Returns the (time index, primary keys, column) definitions.
Sourcefn build_dashboard_insert_column_schemas() -> Vec<PbColumnSchema>
fn build_dashboard_insert_column_schemas() -> Vec<PbColumnSchema>
Build a column schemas for inserting a row into the dashboard table.
fn dashboard_query_ctx(table_info: &TableInfo) -> QueryContextRef
async fn create_dashboard_table_if_not_exists( &self, ctx: QueryContextRef, ) -> Result<TableRef>
Sourceasync fn insert_dashboard(
&self,
name: &str,
definition: &str,
query_ctx: QueryContextRef,
) -> Result<()>
async fn insert_dashboard( &self, name: &str, definition: &str, query_ctx: QueryContextRef, ) -> Result<()>
Insert a dashboard into the dashboard table.
Sourceasync fn list_dashboards(
&self,
query_ctx: QueryContextRef,
) -> Result<Vec<DashboardDefinition>>
async fn list_dashboards( &self, query_ctx: QueryContextRef, ) -> Result<Vec<DashboardDefinition>>
List all dashboards.
Sourceasync fn delete_dashboard(
&self,
name: &str,
query_ctx: QueryContextRef,
) -> Result<()>
async fn delete_dashboard( &self, name: &str, query_ctx: QueryContextRef, ) -> Result<()>
Delete a dashboard by name.
Source§impl Instance
impl Instance
fn handle_put_record_batch_stream_inner( &self, stream: PutRecordBatchRequestStream, ctx: QueryContextRef, ) -> Pin<Box<dyn Stream<Item = Result<DoPutResponse>> + Send>>
async fn handle_insert_plan( &self, insert: InsertIntoPlan, ctx: QueryContextRef, ) -> Result<Output>
pub async fn handle_inserts( &self, requests: InsertRequests, ctx: QueryContextRef, ) -> Result<Output>
pub async fn handle_row_inserts( &self, requests: RowInsertRequests, ctx: QueryContextRef, accommodate_existing_schema: bool, is_single_value: bool, ) -> Result<Output>
pub async fn handle_influx_row_inserts( &self, requests: RowInsertRequests, ctx: QueryContextRef, ) -> Result<Output>
pub async fn handle_metric_row_inserts( &self, requests: RowInsertRequests, ctx: QueryContextRef, physical_table: String, ) -> Result<Output>
pub async fn handle_deletes( &self, requests: DeleteRequests, ctx: QueryContextRef, ) -> Result<Output>
pub async fn handle_row_deletes( &self, requests: RowDeleteRequests, ctx: QueryContextRef, ) -> Result<Output>
Source§impl Instance
impl Instance
pub async fn handle_log_inserts( &self, log: RowInsertRequests, ctx: QueryContextRef, ) -> ServerResult<Output>
pub async fn handle_trace_inserts( &self, rows: RowInsertRequests, ctx: QueryContextRef, ) -> ServerResult<Output>
Source§impl Instance
impl Instance
Sourceasync fn ingest_trace_spans(
&self,
pipeline_handler: PipelineHandlerRef,
pipeline: &PipelineWay,
pipeline_params: &GreptimePipelineParams,
table_name: String,
groups: Vec<TraceSpanGroup>,
ctx: QueryContextRef,
) -> ServerResult<TraceIngestOutcome>
async fn ingest_trace_spans( &self, pipeline_handler: PipelineHandlerRef, pipeline: &PipelineWay, pipeline_params: &GreptimePipelineParams, table_name: String, groups: Vec<TraceSpanGroup>, ctx: QueryContextRef, ) -> ServerResult<TraceIngestOutcome>
Ingest OTLP trace spans with chunk-level writes and span-level fallback on deterministic chunk failures.
Sourceasync fn ingest_trace_chunk(
&self,
ingest_ctx: &TraceChunkIngestContext<'_>,
chunk: Vec<TraceSpan>,
ctx: QueryContextRef,
ingest_state: &mut TraceIngestState,
) -> ServerResult<()>
async fn ingest_trace_chunk( &self, ingest_ctx: &TraceChunkIngestContext<'_>, chunk: Vec<TraceSpan>, ctx: QueryContextRef, ingest_state: &mut TraceIngestState, ) -> ServerResult<()>
Ingest one owned trace chunk so successful spans can be moved into the accepted set without extra cloning.
Sourceasync fn ingest_trace_chunk_span_by_span(
&self,
ingest_ctx: &TraceChunkIngestContext<'_>,
chunk: Vec<TraceSpan>,
ctx: QueryContextRef,
ingest_state: &mut TraceIngestState,
) -> ServerResult<()>
async fn ingest_trace_chunk_span_by_span( &self, ingest_ctx: &TraceChunkIngestContext<'_>, chunk: Vec<TraceSpan>, ctx: QueryContextRef, ingest_state: &mut TraceIngestState, ) -> ServerResult<()>
Retry spans one by one only after a deterministic chunk failure.
Sourceasync fn insert_trace_requests(
&self,
requests: RowInsertRequests,
is_trace_v1_model: bool,
ctx: QueryContextRef,
) -> ServerResult<Output>
async fn insert_trace_requests( &self, requests: RowInsertRequests, is_trace_v1_model: bool, ctx: QueryContextRef, ) -> ServerResult<Output>
Reconcile and insert one trace request batch.
fn classify_trace_chunk_failure(status: StatusCode) -> ChunkFailureReaction
fn should_propagate_trace_span_failure(status: StatusCode) -> bool
fn add_trace_write_cost(outcome: &mut TraceIngestOutcome, cost: usize)
fn push_trace_failure_message( messages: &mut Vec<String>, label: &str, message: String, )
fn finish_trace_failure_message( accepted_spans: usize, rejected_spans: usize, messages: Vec<String>, ) -> Option<String>
Sourceasync fn alter_trace_table_columns_to_float64(
&self,
ctx: &QueryContextRef,
table_name: &str,
column_names: &[String],
) -> ServerResult<()>
async fn alter_trace_table_columns_to_float64( &self, ctx: &QueryContextRef, table_name: &str, column_names: &[String], ) -> ServerResult<()>
Widen existing trace table columns to Float64 before request rewrite.
Sourceasync fn reconcile_trace_column_types(
&self,
requests: &mut RowInsertRequests,
ctx: &QueryContextRef,
) -> ServerResult<()>
async fn reconcile_trace_column_types( &self, requests: &mut RowInsertRequests, ctx: &QueryContextRef, ) -> ServerResult<()>
Coerce request column types and values to match the existing table schema for compatible type pairs. Existing table schema wins when present; otherwise the full request batch decides a stable target type.
Source§impl Instance
impl Instance
async fn handle_remote_query( &self, ctx: &QueryContextRef, catalog_name: &str, schema_name: &str, table_name: &str, query: &Query, ) -> Result<Output>
async fn handle_remote_queries( &self, ctx: QueryContextRef, queries: &[Query], ) -> ServerResult<Vec<(String, Output)>>
Source§impl Instance
impl Instance
async fn create_metric_physical_table_if_missing( &self, catalog: &str, schema: &str, physical_table: &str, ctx: QueryContextRef, ) -> ServerResult<()>
Source§impl Instance
impl Instance
Sourcepub(crate) async fn handle_query_metric_names(
&self,
matchers: Vec<Matcher>,
ctx: &QueryContextRef,
) -> Result<Vec<String>>
pub(crate) async fn handle_query_metric_names( &self, matchers: Vec<Matcher>, ctx: &QueryContextRef, ) -> Result<Vec<String>>
Handles metric names query request, returns the names.
Sourcepub(crate) async fn handle_query_label_values(
&self,
metric: String,
label_name: String,
matchers: Vec<Matcher>,
start: SystemTime,
end: SystemTime,
ctx: &QueryContextRef,
) -> Result<Vec<String>>
pub(crate) async fn handle_query_label_values( &self, metric: String, label_name: String, matchers: Vec<Matcher>, start: SystemTime, end: SystemTime, ctx: &QueryContextRef, ) -> Result<Vec<String>>
Handles label values query request, returns the values.
Source§impl Instance
impl Instance
pub fn catalog_manager(&self) -> &CatalogManagerRef
pub fn query_engine(&self) -> &QueryEngineRef
pub fn plugins(&self) -> &Plugins
pub fn statement_executor(&self) -> &StatementExecutorRef
pub fn table_metadata_manager(&self) -> &TableMetadataManagerRef
pub fn inserter(&self) -> &InserterRef
pub fn process_manager(&self) -> &ProcessManagerRef
pub fn node_manager(&self) -> &NodeManagerRef
pub fn partition_manager(&self) -> &PartitionRuleManagerRef
pub fn cache_invalidator(&self) -> &CacheInvalidatorRef
pub fn procedure_executor(&self) -> &ProcedureExecutorRef
pub fn suspend_state(&self) -> Arc<AtomicBool> ⓘ
pub(crate) fn is_suspended(&self) -> bool
Source§impl Instance
impl Instance
async fn query_statement( &self, stmt: Statement, query_ctx: QueryContextRef, ) -> Result<Output>
async fn exec_statement_with_timeout( &self, stmt: Statement, query_ctx: QueryContextRef, query_interceptor: Option<&SqlQueryInterceptorRef<Error>>, ) -> Result<Output>
async fn exec_statement( &self, stmt: Statement, query_ctx: QueryContextRef, query_interceptor: Option<&SqlQueryInterceptorRef<Error>>, ) -> Result<Output>
async fn plan_and_exec_sql( &self, stmt: Statement, query_ctx: &QueryContextRef, query_interceptor: Option<&SqlQueryInterceptorRef<Error>>, ) -> Result<Output>
async fn plan_and_exec_tql( &self, query_ctx: &QueryContextRef, query_interceptor: Option<&SqlQueryInterceptorRef<Error>>, tql: Tql, ) -> Result<Output>
async fn check_otlp_legacy( &self, names: &[&String], ctx: QueryContextRef, ) -> Result<bool>
Source§impl Instance
impl Instance
async fn do_query_inner( &self, query: &str, query_ctx: QueryContextRef, ) -> Vec<Result<Output>> ⓘ
async fn exec_plan( &self, plan: LogicalPlan, query_ctx: QueryContextRef, ) -> Result<Output>
async fn exec_plan_with_timeout( &self, stmt: Option<Statement>, plan: LogicalPlan, query_ctx: QueryContextRef, ) -> Result<Output>
async fn do_exec_plan_inner( &self, stmt: Option<Statement>, plan: LogicalPlan, query_ctx: QueryContextRef, ) -> Result<Output>
async fn do_promql_query_inner( &self, query: &PromQuery, query_ctx: QueryContextRef, ) -> Vec<Result<Output>> ⓘ
async fn do_describe_inner( &self, stmt: Statement, query_ctx: QueryContextRef, ) -> Result<Option<DescribeResult>>
async fn is_valid_schema_inner( &self, catalog: &str, schema: &str, ) -> Result<bool>
Trait Implementations§
Source§impl DashboardHandler for Instance
impl DashboardHandler for Instance
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
definition: &'life2 str,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<DashboardDefinition>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl GrpcQueryHandler for Instance
impl GrpcQueryHandler for Instance
fn do_query<'life0, 'async_trait>(
&'life0 self,
request: Request,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_put_record_batch_stream( &self, stream: PutRecordBatchRequestStream, ctx: QueryContextRef, ) -> Pin<Box<dyn Stream<Item = Result<DoPutResponse>> + Send>>
Source§impl InfluxdbLineProtocolHandler for Instance
impl InfluxdbLineProtocolHandler for Instance
Source§fn exec<'life0, 'async_trait>(
&'life0 self,
request: InfluxdbRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn exec<'life0, 'async_trait>(
&'life0 self,
request: InfluxdbRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl JaegerQueryHandler for Instance
impl JaegerQueryHandler for Instance
Source§fn get_services<'life0, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_services<'life0, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/api/services API.Source§fn get_operations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
service_name: &'life1 str,
span_kind: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_operations<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
service_name: &'life1 str,
span_kind: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
/api/operations and /api/services/{service_name}/operations API.Source§fn get_trace<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
trace_id: &'life1 str,
start_time: Option<i64>,
end_time: Option<i64>,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_trace<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
trace_id: &'life1 str,
start_time: Option<i64>,
end_time: Option<i64>,
limit: Option<usize>,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn find_traces<'life0, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
query_params: QueryTraceParams,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_traces<'life0, 'async_trait>(
&'life0 self,
ctx: QueryContextRef,
query_params: QueryTraceParams,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
/api/traces API.Source§impl LogQueryHandler for Instance
impl LogQueryHandler for Instance
Source§fn query<'life0, 'async_trait>(
&'life0 self,
request: LogQuery,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
request: LogQuery,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn catalog_manager(
&self,
_ctx: &QueryContext,
) -> ServerResult<&dyn CatalogManager>
fn catalog_manager( &self, _ctx: &QueryContext, ) -> ServerResult<&dyn CatalogManager>
Source§impl OpenTelemetryProtocolHandler for Instance
impl OpenTelemetryProtocolHandler for Instance
Source§fn metrics<'life0, 'async_trait>(
&'life0 self,
request: ExportMetricsServiceRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn metrics<'life0, 'async_trait>(
&'life0 self,
request: ExportMetricsServiceRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn traces<'life0, 'async_trait>(
&'life0 self,
pipeline_handler: PipelineHandlerRef,
request: ExportTraceServiceRequest,
pipeline: PipelineWay,
pipeline_params: GreptimePipelineParams,
table_name: String,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<TraceIngestOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn traces<'life0, 'async_trait>(
&'life0 self,
pipeline_handler: PipelineHandlerRef,
request: ExportTraceServiceRequest,
pipeline: PipelineWay,
pipeline_params: GreptimePipelineParams,
table_name: String,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<TraceIngestOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn logs<'life0, 'async_trait>(
&'life0 self,
pipeline_handler: PipelineHandlerRef,
request: ExportLogsServiceRequest,
pipeline: PipelineWay,
pipeline_params: GreptimePipelineParams,
table_name: String,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Vec<Output>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl OpentsdbProtocolHandler for Instance
impl OpentsdbProtocolHandler for Instance
Source§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,
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,
Source§impl PendingRowsSchemaAlterer for Instance
impl PendingRowsSchemaAlterer for Instance
Source§fn create_tables_if_missing_batch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
tables: &'life3 [(&'life4 str, &'life5 [ColumnSchema])],
with_metric_engine: bool,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn create_tables_if_missing_batch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
tables: &'life3 [(&'life4 str, &'life5 [ColumnSchema])],
with_metric_engine: bool,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
(table_name, request_schema).Source§fn add_missing_prom_tag_columns_batch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
tables: &'life3 [(&'life4 str, &'life5 [String])],
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn add_missing_prom_tag_columns_batch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
tables: &'life3 [(&'life4 str, &'life5 [String])],
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
(table_name, missing_column_names).Source§impl PipelineHandler for Instance
impl PipelineHandler for Instance
fn insert<'life0, 'async_trait>(
&'life0 self,
log: RowInsertRequests,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pipeline<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: PipelineVersion,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Arc<Pipeline>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn insert_pipeline<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
content_type: &'life2 str,
pipeline: &'life3 str,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<PipelineInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn delete_pipeline<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: PipelineVersion,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<Option<()>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_table<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 str,
query_ctx: &'life2 QueryContext,
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<Table>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn build_pipeline(&self, pipeline: &str) -> ServerResult<Pipeline>
Source§fn get_pipeline_str<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: PipelineVersion,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<(String, TimestampNanosecond)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pipeline_str<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: PipelineVersion,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<(String, TimestampNanosecond)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl PromStoreProtocolHandler for Instance
impl PromStoreProtocolHandler for Instance
Source§fn pre_write<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RowInsertRequests,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pre_write<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RowInsertRequests,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn write<'life0, 'async_trait>(
&'life0 self,
request: RowInsertRequests,
ctx: QueryContextRef,
with_metric_engine: bool,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 self,
request: RowInsertRequests,
ctx: QueryContextRef,
with_metric_engine: bool,
) -> Pin<Box<dyn Future<Output = ServerResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn read<'life0, 'async_trait>(
&'life0 self,
request: ReadRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<PromStoreResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 self,
request: ReadRequest,
ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = ServerResult<PromStoreResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn ingest_metrics<'life0, 'async_trait>(
&'life0 self,
_metrics: Metrics,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ingest_metrics<'life0, 'async_trait>(
&'life0 self,
_metrics: Metrics,
) -> Pin<Box<dyn Future<Output = ServerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl PrometheusHandler for Instance
impl PrometheusHandler for Instance
fn do_query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 PromQuery,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn query_metric_names<'life0, 'life1, 'async_trait>(
&'life0 self,
matchers: Vec<Matcher>,
ctx: &'life1 QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_metric_names<'life0, 'life1, 'async_trait>(
&'life0 self,
matchers: Vec<Matcher>,
ctx: &'life1 QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
__name__ matchers.fn query_label_values<'life0, 'life1, 'async_trait>(
&'life0 self,
metric: String,
label_name: String,
matchers: Vec<Matcher>,
start: SystemTime,
end: SystemTime,
ctx: &'life1 QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn catalog_manager(&self) -> CatalogManagerRef
Source§impl SqlQueryHandler for Instance
impl SqlQueryHandler for Instance
fn do_query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn do_exec_plan<'life0, 'async_trait>(
&'life0 self,
stmt: Option<Statement>,
plan: LogicalPlan,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn do_promql_query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 PromQuery,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn do_describe<'life0, 'async_trait>(
&'life0 self,
stmt: Statement,
query_ctx: QueryContextRef,
) -> Pin<Box<dyn Future<Output = Result<Option<DescribeResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_valid_schema<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
catalog: &'life1 str,
schema: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for Instance
impl !RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl !UnwindSafe for Instance
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<Source> Sculptor<HNil, HNil> for Source
impl<Source> Sculptor<HNil, HNil> for Source
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
§fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
§fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
§fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
§fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
x-request-id as the header name. Read more§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
500 Internal Server responses. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
413 Payload Too Large responses. Read more§fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
§fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.