pub struct TenantLimitsBuilder { /* private fields */ }Expand description
Builder for TenantLimits.
All fields default to None (no limit / use handler default).
Implementations§
Source§impl TenantLimitsBuilder
impl TenantLimitsBuilder
Sourcepub const fn with_max_concurrent_tasks(self, n: usize) -> TenantLimitsBuilder
pub const fn with_max_concurrent_tasks(self, n: usize) -> TenantLimitsBuilder
Sets the maximum concurrent tasks.
Sourcepub const fn with_executor_timeout(self, d: Duration) -> TenantLimitsBuilder
pub const fn with_executor_timeout(self, d: Duration) -> TenantLimitsBuilder
Sets the executor timeout.
Sourcepub const fn with_event_queue_capacity(self, n: usize) -> TenantLimitsBuilder
pub const fn with_event_queue_capacity(self, n: usize) -> TenantLimitsBuilder
Sets the event queue capacity per stream.
Sourcepub const fn with_rate_limit_rps(self, rps: u32) -> TenantLimitsBuilder
pub const fn with_rate_limit_rps(self, rps: u32) -> TenantLimitsBuilder
Sets the rate limit in requests per second.
Sourcepub const fn max_concurrent_tasks(self, n: usize) -> TenantLimitsBuilder
👎Deprecated since 0.16.0: use with_max_concurrent_tasks; removed no earlier than 0.17.0
pub const fn max_concurrent_tasks(self, n: usize) -> TenantLimitsBuilder
use with_max_concurrent_tasks; removed no earlier than 0.17.0
Sets the maximum concurrent tasks.
Sourcepub const fn executor_timeout(self, d: Duration) -> TenantLimitsBuilder
👎Deprecated since 0.16.0: use with_executor_timeout; removed no earlier than 0.17.0
pub const fn executor_timeout(self, d: Duration) -> TenantLimitsBuilder
use with_executor_timeout; removed no earlier than 0.17.0
Sets the executor timeout.
Sourcepub const fn event_queue_capacity(self, n: usize) -> TenantLimitsBuilder
👎Deprecated since 0.16.0: use with_event_queue_capacity; removed no earlier than 0.17.0
pub const fn event_queue_capacity(self, n: usize) -> TenantLimitsBuilder
use with_event_queue_capacity; removed no earlier than 0.17.0
Sets the event queue capacity per stream.
Sourcepub const fn rate_limit_rps(self, rps: u32) -> TenantLimitsBuilder
👎Deprecated since 0.16.0: use with_rate_limit_rps; removed no earlier than 0.17.0
pub const fn rate_limit_rps(self, rps: u32) -> TenantLimitsBuilder
use with_rate_limit_rps; removed no earlier than 0.17.0
Sets the rate limit in requests per second.
Sourcepub const fn build(self) -> TenantLimits
pub const fn build(self) -> TenantLimits
Builds the TenantLimits.
Trait Implementations§
Source§impl Clone for TenantLimitsBuilder
impl Clone for TenantLimitsBuilder
Source§fn clone(&self) -> TenantLimitsBuilder
fn clone(&self) -> TenantLimitsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantLimitsBuilder
impl Debug for TenantLimitsBuilder
Source§impl Default for TenantLimitsBuilder
impl Default for TenantLimitsBuilder
Source§fn default() -> TenantLimitsBuilder
fn default() -> TenantLimitsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for TenantLimitsBuilder
impl Freeze for TenantLimitsBuilder
impl Move for TenantLimitsBuilder
impl RefUnwindSafe for TenantLimitsBuilder
impl Send for TenantLimitsBuilder
impl Sync for TenantLimitsBuilder
impl Unpin for TenantLimitsBuilder
impl UnsafeUnpin for TenantLimitsBuilder
impl UnwindSafe for TenantLimitsBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].