pub struct TreeConfig { /* private fields */ }Expand description
The configuration of the engine tree.
Implementations§
Source§impl TreeConfig
 
impl TreeConfig
Sourcepub const fn new(
    persistence_threshold: u64,
    memory_block_buffer_target: u64,
    block_buffer_limit: u32,
    max_invalid_header_cache_length: u32,
    max_execute_block_batch_size: usize,
    legacy_state_root: bool,
    always_compare_trie_updates: bool,
    disable_prewarming: bool,
    disable_parallel_sparse_trie: bool,
    state_provider_metrics: bool,
    cross_block_cache_size: u64,
    has_enough_parallelism: bool,
    multiproof_chunking_enabled: bool,
    multiproof_chunk_size: usize,
    reserved_cpu_cores: usize,
    precompile_cache_disabled: bool,
    state_root_fallback: bool,
    always_process_payload_attributes_on_canonical_head: bool,
    prewarm_max_concurrency: usize,
    allow_unwind_canonical_header: bool,
    storage_worker_count: usize,
    account_worker_count: usize,
) -> TreeConfig
 
pub const fn new( persistence_threshold: u64, memory_block_buffer_target: u64, block_buffer_limit: u32, max_invalid_header_cache_length: u32, max_execute_block_batch_size: usize, legacy_state_root: bool, always_compare_trie_updates: bool, disable_prewarming: bool, disable_parallel_sparse_trie: bool, state_provider_metrics: bool, cross_block_cache_size: u64, has_enough_parallelism: bool, multiproof_chunking_enabled: bool, multiproof_chunk_size: usize, reserved_cpu_cores: usize, precompile_cache_disabled: bool, state_root_fallback: bool, always_process_payload_attributes_on_canonical_head: bool, prewarm_max_concurrency: usize, allow_unwind_canonical_header: bool, storage_worker_count: usize, account_worker_count: usize, ) -> TreeConfig
Create engine tree configuration.
Sourcepub const fn persistence_threshold(&self) -> u64
 
pub const fn persistence_threshold(&self) -> u64
Return the persistence threshold.
Sourcepub const fn memory_block_buffer_target(&self) -> u64
 
pub const fn memory_block_buffer_target(&self) -> u64
Return the memory block buffer target.
Sourcepub const fn block_buffer_limit(&self) -> u32
 
pub const fn block_buffer_limit(&self) -> u32
Return the block buffer limit.
Sourcepub const fn max_invalid_header_cache_length(&self) -> u32
 
pub const fn max_invalid_header_cache_length(&self) -> u32
Return the maximum invalid cache header length.
Sourcepub const fn max_execute_block_batch_size(&self) -> usize
 
pub const fn max_execute_block_batch_size(&self) -> usize
Return the maximum execute block batch size.
Sourcepub const fn multiproof_chunking_enabled(&self) -> bool
 
pub const fn multiproof_chunking_enabled(&self) -> bool
Return whether the multiproof task chunking is enabled.
Sourcepub const fn multiproof_chunk_size(&self) -> usize
 
pub const fn multiproof_chunk_size(&self) -> usize
Return the multiproof task chunk size.
Sourcepub const fn reserved_cpu_cores(&self) -> usize
 
pub const fn reserved_cpu_cores(&self) -> usize
Return the number of reserved CPU cores for non-reth processes
Sourcepub const fn legacy_state_root(&self) -> bool
 
pub const fn legacy_state_root(&self) -> bool
Returns whether to use the legacy state root calculation method instead of the new state root task
Sourcepub const fn state_provider_metrics(&self) -> bool
 
pub const fn state_provider_metrics(&self) -> bool
Returns whether or not state provider metrics are enabled.
Sourcepub const fn disable_parallel_sparse_trie(&self) -> bool
 
pub const fn disable_parallel_sparse_trie(&self) -> bool
Returns whether or not the parallel sparse trie is disabled.
Sourcepub const fn disable_prewarming(&self) -> bool
 
pub const fn disable_prewarming(&self) -> bool
Returns whether or not parallel prewarming should be used.
Sourcepub const fn always_compare_trie_updates(&self) -> bool
 
pub const fn always_compare_trie_updates(&self) -> bool
Returns whether to always compare trie updates from the state root task to the trie updates from the regular state root calculation.
Sourcepub const fn cross_block_cache_size(&self) -> u64
 
pub const fn cross_block_cache_size(&self) -> u64
Returns the cross-block cache size.
Sourcepub const fn precompile_cache_disabled(&self) -> bool
 
pub const fn precompile_cache_disabled(&self) -> bool
Returns whether precompile cache is disabled.
Sourcepub const fn state_root_fallback(&self) -> bool
 
pub const fn state_root_fallback(&self) -> bool
Returns whether to use state root fallback.
Sourcepub const fn with_always_process_payload_attributes_on_canonical_head(
    self,
    always_process_payload_attributes_on_canonical_head: bool,
) -> TreeConfig
 
pub const fn with_always_process_payload_attributes_on_canonical_head( self, always_process_payload_attributes_on_canonical_head: bool, ) -> TreeConfig
Sets whether to always process payload attributes when the FCU head is already canonical.
Sourcepub const fn always_process_payload_attributes_on_canonical_head(&self) -> bool
 
pub const fn always_process_payload_attributes_on_canonical_head(&self) -> bool
Returns true if payload attributes should always be processed even when the FCU head is canonical.
Sourcepub const fn unwind_canonical_header(&self) -> bool
 
pub const fn unwind_canonical_header(&self) -> bool
Returns true if canonical header should be unwound to ancestor during forkchoice updates.
Sourcepub const fn with_persistence_threshold(
    self,
    persistence_threshold: u64,
) -> TreeConfig
 
pub const fn with_persistence_threshold( self, persistence_threshold: u64, ) -> TreeConfig
Setter for persistence threshold.
Sourcepub const fn with_memory_block_buffer_target(
    self,
    memory_block_buffer_target: u64,
) -> TreeConfig
 
pub const fn with_memory_block_buffer_target( self, memory_block_buffer_target: u64, ) -> TreeConfig
Setter for memory block buffer target.
Sourcepub const fn with_block_buffer_limit(
    self,
    block_buffer_limit: u32,
) -> TreeConfig
 
pub const fn with_block_buffer_limit( self, block_buffer_limit: u32, ) -> TreeConfig
Setter for block buffer limit.
Sourcepub const fn with_max_invalid_header_cache_length(
    self,
    max_invalid_header_cache_length: u32,
) -> TreeConfig
 
pub const fn with_max_invalid_header_cache_length( self, max_invalid_header_cache_length: u32, ) -> TreeConfig
Setter for maximum invalid header cache length.
Sourcepub const fn with_max_execute_block_batch_size(
    self,
    max_execute_block_batch_size: usize,
) -> TreeConfig
 
pub const fn with_max_execute_block_batch_size( self, max_execute_block_batch_size: usize, ) -> TreeConfig
Setter for maximum execute block batch size.
Sourcepub const fn with_legacy_state_root(self, legacy_state_root: bool) -> TreeConfig
 
pub const fn with_legacy_state_root(self, legacy_state_root: bool) -> TreeConfig
Setter for whether to use the legacy state root calculation method.
Sourcepub const fn without_prewarming(self, disable_prewarming: bool) -> TreeConfig
 
pub const fn without_prewarming(self, disable_prewarming: bool) -> TreeConfig
Setter for whether to disable parallel prewarming.
Sourcepub const fn with_always_compare_trie_updates(
    self,
    always_compare_trie_updates: bool,
) -> TreeConfig
 
pub const fn with_always_compare_trie_updates( self, always_compare_trie_updates: bool, ) -> TreeConfig
Setter for whether to always compare trie updates from the state root task to the trie updates from the regular state root calculation.
Sourcepub const fn with_cross_block_cache_size(
    self,
    cross_block_cache_size: u64,
) -> TreeConfig
 
pub const fn with_cross_block_cache_size( self, cross_block_cache_size: u64, ) -> TreeConfig
Setter for cross block cache size.
Sourcepub const fn with_has_enough_parallelism(
    self,
    has_enough_parallelism: bool,
) -> TreeConfig
 
pub const fn with_has_enough_parallelism( self, has_enough_parallelism: bool, ) -> TreeConfig
Setter for has enough parallelism.
Sourcepub const fn with_state_provider_metrics(
    self,
    state_provider_metrics: bool,
) -> TreeConfig
 
pub const fn with_state_provider_metrics( self, state_provider_metrics: bool, ) -> TreeConfig
Setter for state provider metrics.
Sourcepub const fn with_disable_parallel_sparse_trie(
    self,
    disable_parallel_sparse_trie: bool,
) -> TreeConfig
 
pub const fn with_disable_parallel_sparse_trie( self, disable_parallel_sparse_trie: bool, ) -> TreeConfig
Setter for whether to disable the parallel sparse trie
Sourcepub const fn with_multiproof_chunking_enabled(
    self,
    multiproof_chunking_enabled: bool,
) -> TreeConfig
 
pub const fn with_multiproof_chunking_enabled( self, multiproof_chunking_enabled: bool, ) -> TreeConfig
Setter for whether multiproof task should chunk proof targets.
Sourcepub const fn with_multiproof_chunk_size(
    self,
    multiproof_chunk_size: usize,
) -> TreeConfig
 
pub const fn with_multiproof_chunk_size( self, multiproof_chunk_size: usize, ) -> TreeConfig
Setter for multiproof task chunk size for proof targets.
Sourcepub const fn with_reserved_cpu_cores(
    self,
    reserved_cpu_cores: usize,
) -> TreeConfig
 
pub const fn with_reserved_cpu_cores( self, reserved_cpu_cores: usize, ) -> TreeConfig
Setter for the number of reserved CPU cores for any non-reth processes
Sourcepub const fn without_precompile_cache(
    self,
    precompile_cache_disabled: bool,
) -> TreeConfig
 
pub const fn without_precompile_cache( self, precompile_cache_disabled: bool, ) -> TreeConfig
Setter for whether to disable the precompile cache.
Sourcepub const fn with_state_root_fallback(
    self,
    state_root_fallback: bool,
) -> TreeConfig
 
pub const fn with_state_root_fallback( self, state_root_fallback: bool, ) -> TreeConfig
Setter for whether to use state root fallback, useful for testing.
Sourcepub const fn with_unwind_canonical_header(
    self,
    unwind_canonical_header: bool,
) -> TreeConfig
 
pub const fn with_unwind_canonical_header( self, unwind_canonical_header: bool, ) -> TreeConfig
Setter for whether to unwind canonical header to ancestor during forkchoice updates.
Sourcepub const fn use_state_root_task(&self) -> bool
 
pub const fn use_state_root_task(&self) -> bool
Whether or not to use state root task
Sourcepub const fn with_prewarm_max_concurrency(
    self,
    prewarm_max_concurrency: usize,
) -> TreeConfig
 
pub const fn with_prewarm_max_concurrency( self, prewarm_max_concurrency: usize, ) -> TreeConfig
Setter for prewarm max concurrency.
Sourcepub const fn prewarm_max_concurrency(&self) -> usize
 
pub const fn prewarm_max_concurrency(&self) -> usize
Return the prewarm max concurrency.
Sourcepub const fn storage_worker_count(&self) -> usize
 
pub const fn storage_worker_count(&self) -> usize
Return the number of storage proof worker threads.
Sourcepub fn with_storage_worker_count(
    self,
    storage_worker_count: usize,
) -> TreeConfig
 
pub fn with_storage_worker_count( self, storage_worker_count: usize, ) -> TreeConfig
Setter for the number of storage proof worker threads.
Sourcepub const fn account_worker_count(&self) -> usize
 
pub const fn account_worker_count(&self) -> usize
Return the number of account proof worker threads.
Sourcepub fn with_account_worker_count(
    self,
    account_worker_count: usize,
) -> TreeConfig
 
pub fn with_account_worker_count( self, account_worker_count: usize, ) -> TreeConfig
Setter for the number of account proof worker threads.
Trait Implementations§
Source§impl Clone for TreeConfig
 
impl Clone for TreeConfig
Source§fn clone(&self) -> TreeConfig
 
fn clone(&self) -> TreeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TreeConfig
 
impl Debug for TreeConfig
Source§impl Default for TreeConfig
 
impl Default for TreeConfig
Source§fn default() -> TreeConfig
 
fn default() -> TreeConfig
Auto Trait Implementations§
impl Freeze for TreeConfig
impl RefUnwindSafe for TreeConfig
impl Send for TreeConfig
impl Sync for TreeConfig
impl Unpin for TreeConfig
impl UnwindSafe for TreeConfig
Blanket Implementations§
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<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<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
    TxEnv: FromRecoveredTx<T>,
 
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
    TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
 
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
    TxEnv: FromTxWithEncoded<T>,
 
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
    TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
 
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§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> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> 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<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.§impl<T> TryConv for T
 
impl<T> TryConv for T
§impl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
    T: 'static,
impl<T> MaybeDebug for Twhere
    T: Debug,
impl<T> MaybeSend for Twhere
    T: Send,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes