pub(crate) struct AggregateRuntime {
op: BoundAggregate,
schema: Arc<SeriesSchema>,
fold: Fold,
annotations: Option<PromqlAnnotationCollector>,
accumulator: Option<FloatAggregator>,
retained: Option<QuantileInput>,
merger: Option<FloatMerger>,
state_schema: Option<Arc<AggregateStateSchema>>,
pub(crate) computed: bool,
}Expand description
One aggregate node’s states, from the first chunk it is handed to the series it finishes with.
Fields§
§op: BoundAggregateWhat the node computes, as the tree bound it: the kind it folds by and the stage it reports.
schema: Arc<SeriesSchema>The layout its input and output share: the fields every chunk has and the grid they are
addressed on. A Complete aggregate neither adds nor drops a field, and it evaluates on its
input’s grid, so one schema describes both sides.
fold: FoldWhat this node keeps between chunks, as the runtime’s own enum, so the chunk check can ask what the operation accepts.
annotations: Option<PromqlAnnotationCollector>The query’s annotation collector, once the driver installed it. Only an operation that skips histogram samples has anything to say, and it says it once.
accumulator: Option<FloatAggregator>The fold. None once Self::compute has taken it, which is also what says the node has
nothing left to fold into.
retained: Option<QuantileInput>The whole input of a quantile aggregate. None for every other kind, and None once the
kernel has answered from it.
merger: Option<FloatMerger>§state_schema: Option<Arc<AggregateStateSchema>>§computed: boolWhether the fold has been finished and its series handed over. A node computes once: a second pull finds the series it queued rather than a fold that ran again.
The driver reads this to decide whether the node settled: an aggregate answers only once its fold has run, so a child with nothing left to hand over is not an answer.
Implementations§
Source§impl AggregateRuntime
impl AggregateRuntime
Sourcefn aggregate_name(&self) -> &'static str
fn aggregate_name(&self) -> &'static str
The PromQL name of the aggregate this node folds, as an annotation names it.
Sourcepub(crate) fn set_annotations(&mut self, collector: PromqlAnnotationCollector)
pub(crate) fn set_annotations(&mut self, collector: PromqlAnnotationCollector)
Gives this node the query’s collector, so it can report what it skipped.
Sourcefn describe(&self) -> String
fn describe(&self) -> String
What this node computes, for a rejection that has to say what it refused.
It names the kind this node computes, which distinguishes it from another node in the tree.
Sourcepub(crate) fn new(
op: BoundAggregate,
schema: Arc<SeriesSchema>,
buffer: &mut NodeBuffer,
) -> Result<Self>
pub(crate) fn new( op: BoundAggregate, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>
The states of a Complete aggregate over schema.
A stage other than Complete and a kind without a supported kernel are refused here, before a single
chunk is folded: a node this runtime cannot compute must not start, because a partial answer
would be one the caller never asked for. The rejection names what was found, so a reader can
tell a tree this runtime cannot run from one it cannot run correctly.
Sourcefn new_quantile(
op: BoundAggregate,
quantile: Option<f64>,
schema: Arc<SeriesSchema>,
buffer: &mut NodeBuffer,
) -> Result<Self>
fn new_quantile( op: BoundAggregate, quantile: Option<f64>, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>
The states of a Complete quantile aggregate over schema, whose φ is quantile.
A quantile is answered from its group’s whole sample set, so a stage that saw only part of
a group would answer the quantile of a subset of it: the quantile of two partitions’
quantiles is not the quantile of their union, and there is no state to export or merge
either. That is a property of the operation and not of this runtime, so what refuses a
Partial or a Final one is the tree’s own check – aggregate_state_binding has no
binding for a quantile, which crate::native::plan::NativeNode::validate reports, and
crate::native::split declines a quantile for the same reason – and this starts the one
stage that is left.
The same check is what puts the input on a grid: a Complete aggregate is validated to
answer its input’s values on its input’s grid, and schema is the layout the node reports,
so the grid the kernel reads its parameter on is there before this runs.
Sourcepub(crate) fn new_parameterized(
op: BoundAggregate,
schema: Arc<SeriesSchema>,
buffer: &mut NodeBuffer,
) -> Result<Self>
pub(crate) fn new_parameterized( op: BoundAggregate, schema: Arc<SeriesSchema>, buffer: &mut NodeBuffer, ) -> Result<Self>
The states of a Complete aggregate whose one argument is read at every grid point.
Only quantile has such an argument, and its fold keeps no number of its own: the φ arrives
as a series from the node’s parameter child (Self::hold_parameter), so the binding’s
constant is not read here at all. Everything else about the fold is the bound one’s – the
stage, the layout, and the sample set it keeps until the input ends – which is why this is
Self::new_quantile with no constant to fall back on rather than a second kind of state.
Sourcepub(crate) fn hold_parameter(
&mut self,
parameter: Series,
buffer: &mut NodeBuffer,
) -> Result<()>
pub(crate) fn hold_parameter( &mut self, parameter: Series, buffer: &mut NodeBuffer, ) -> Result<()>
Keeps the φ this node reads at every grid point, in the one unlabelled scalar series its parameter child handed over.
The series is already reserved: it arrives through the driver’s hold_scalar, which grows the
same reservation by series_bytes before the chunk is kept, exactly as it does for a
broadcast scalar or a topk parameter. Adopting it therefore only settles on what the node
holds – which counts it once, from QuantileInput::bytes – rather than growing for a
second allocation that was never made: a pool that holds the handoff must not refuse a
handoff that allocates nothing.
Sourcepub(crate) fn pending(&self, chunk: &EvaluatedChunk) -> usize
pub(crate) fn pending(&self, chunk: &EvaluatedChunk) -> usize
What consuming chunk reserves while it is consumed.
A point-wise fold drops the chunk at the end of the call and keeps only its states, so the
charge is the chunk’s own bytes – the figure evaluated_bytes reports, which is one pass
over the chunk and no state between chunks – and not the operand_chunk_bytes figure a
binary operand keeps, which exists because such an operand holds a series for the whole
execution and so must count the slices of one buffer instead of the buffer once per chunk.
A quantile keeps the chunk instead, and what it holds is not the chunk alone: it is the
allocations the chunk’s samples live in, billed once each, beside the chunk’s own descriptors
(Self::retain_quantile, which is chunk_bytes_beside_samples plus
unbilled_sample_buffers plus unbilled_tables). That figure is read from the chunk by
the retainer itself, before it retains it, so nothing is held before it is reserved. Booking
the chunk again here would reserve the same backing twice – once for the chunk being handed
over and once for the allocations it points into – which is not a safer estimate but a
refusal of an input whose own figure the pool admits.
Sourcepub(crate) fn accumulate(
&mut self,
chunk: EvaluatedChunk,
buffer: &mut NodeBuffer,
pending: usize,
) -> Result<()>
pub(crate) fn accumulate( &mut self, chunk: EvaluatedChunk, buffer: &mut NodeBuffer, pending: usize, ) -> Result<()>
Folds one chunk into its group.
A chunk that closes its series closes nothing here: a group is not a series, so the last contribution of one member says nothing about the group. The fold keeps its states, which is what makes a group’s answer its whole group’s answer once the input ends.
A quantile keeps the chunk itself, for the same reason: the answer is the group’s sample set,
so the samples have to survive until the input does.
Sourcefn retain_quantile(
&mut self,
chunk: EvaluatedChunk,
buffer: &mut NodeBuffer,
) -> Result<()>
fn retain_quantile( &mut self, chunk: EvaluatedChunk, buffer: &mut NodeBuffer, ) -> Result<()>
Keeps one chunk of a quantile’s input until the input ends.
The chunk is kept whole rather than folded: the answer is the φ-quantile of the group’s sample
set, and no fixed-width state holds a sample set. What it costs is measured the way a binary
operand measures the chunks it retains, and for the same reason: what a quantile keeps is a
series for the rest of the execution, so the allocation one buffer its chunks are slices of is
counted once rather than once per chunk – and counted at all when the chunk holds a small
slice of it, because the allocation is what stays resident. It is the chunk’s own descriptors
(chunk_bytes_beside_samples) beside those allocations: the Arrow buffers its samples live
in, once each (unbilled_sample_buffers), and the histogram tables they index into, once
each (unbilled_tables). The figure is reserved before the push – the push is what makes
the node hold it – and the reservation then settles on the whole input, which is what this
node holds between chunks.
Sourcepub(crate) fn accumulate_state(
&mut self,
chunk: StateChunk,
buffer: &mut NodeBuffer,
pending: usize,
) -> Result<()>
pub(crate) fn accumulate_state( &mut self, chunk: StateChunk, buffer: &mut NodeBuffer, pending: usize, ) -> Result<()>
Merges one state chunk into this final aggregate.
State reaches a Final from exactly two places and is merged here, once: a producer in this
process hands over the groups it folded (StateChunk::Series), and a region’s exported
frame is decoded into the row it carries (StateChunk::Row, which a merge scan reads
across processes). Both are read as the rows the merge kernel takes, so there is one merge
and not one per source; the series form is turned into those rows here, inside the kernel,
instead of by a caller that would have to know what the kernel eats.
Sourcepub(crate) fn pending_state(&self, chunk: &StateChunk) -> usize
pub(crate) fn pending_state(&self, chunk: &StateChunk) -> usize
Transient bytes required to consume a state chunk.
Sourcepub(crate) fn groups(&self) -> usize
pub(crate) fn groups(&self) -> usize
The number of retained groups, for budgeting the output queue backing storage.
A point-wise fold knows its groups because it keyed them. A quantile has not grouped
anything: the kernel does that when it answers. What it reports here is therefore the number
of members it retained, which is an upper bound – every group has at least one member – and
only ever sizes a reservation.
Sourcepub(crate) fn compute(
&mut self,
buffer: &mut NodeBuffer,
queue_bytes: usize,
) -> Result<Option<AggregateOutput>>
pub(crate) fn compute( &mut self, buffer: &mut NodeBuffer, queue_bytes: usize, ) -> Result<Option<AggregateOutput>>
Finishes the fold and returns one series per group, or None if the fold already ran.
None is what a node reports after it has queued its series: the caller reads them from the
queue, exactly as it reads the chunks a binary node queued, so a second pull does not finish
a fold whose states are gone.
Sourcefn report_evidence(&mut self, evidence: HistogramEvidence)
fn report_evidence(&mut self, evidence: HistogramEvidence)
Reports what the fold or merge recorded about its inputs, once, where the answer is final.
Only a Complete or a Final node reports: a Partial node hands its evidence on in the
state it exports, because a point’s outcome is not decided until every partition has been
merged and a message cannot be withdrawn once it has been collected. The collector is the
node’s own handle, so its children keep theirs.
A poisoned point answers nothing, and the reconciliation its inputs needed is not reported for it: the summary already dropped that bit, which is what makes the message set the same whichever order the partitions arrived in.
Sourcefn finish_quantile(
&self,
input: QuantileInput,
buffer: &mut NodeBuffer,
queue_bytes: usize,
) -> Result<Vec<Series>>
fn finish_quantile( &self, input: QuantileInput, buffer: &mut NodeBuffer, queue_bytes: usize, ) -> Result<Vec<Series>>
Answers a quantile from the input it kept, and hands the series over.
The kernel reads q per point from an unlabelled single-field scalar on the aggregate’s own
grid, and a point that scalar has no value at is a point with no result. Which scalar that is
depends on what the query wrote: the φ the node held from its parameter child, or – for a
number bound on the tree – one built over the points the input holds, so that every point it
covers carries it. (A point the held series has no sample at is unanswered, exactly as a
missing q is in the kernel; scalar(...), the shape that produces one per point, answers
NaN rather than no sample, so a statement whose foo holds nothing answers NaN there.)
A built parameter covers the points the input holds and not the window they sit in: the
kernel reads q only where a member has a sample, so a sparse input’s parameter is as wide
as its rows. A parameter over the envelope would instead allocate every position between two
far-apart points – a span sized by the statement’s range rather than by the data it reads,
which the pool never admitted. The parameter is booked from the bound its rows give before it
exists, and settles on its exact figure once it is built. A held parameter is not built here
and needs no such bound: it was reserved when the node adopted it, which is what
QuantileInput::bytes counts ever since.
The reservation covers what is held while the kernel runs – the input, that parameter, and the kernel’s workspace – and then settles on the series the kernel answered, exactly as a point-wise fold’s finish does. The input is what stops being held when the kernel is done with it, so it is dropped before the settle rather than when this call returns: a settle read beside a live input would name a set that is never held, and the figure it left behind would be the one the next node’s admission had to fit into.
Auto Trait Implementations§
impl !RefUnwindSafe for AggregateRuntime
impl !UnwindSafe for AggregateRuntime
impl Freeze for AggregateRuntime
impl Send for AggregateRuntime
impl Sync for AggregateRuntime
impl Unpin for AggregateRuntime
impl UnsafeUnpin for AggregateRuntime
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
§impl<T> Conv for T
impl<T> Conv for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§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> 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<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> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§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<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.