Struct RefusedStreamBudget
pub struct RefusedStreamBudget(pub Option<RateBudget>);dns and http-backend and http and std and tcp only.Expand description
The budget of streams an HTTP/2 or HTTP/3 client connection refuses or resets for what
its origin sent on them, a protocol or message error or a local limit such as
MaxInformationalResponses: a burst tolerated at once and regained over time, past
which the connection is closed. None never closes the connection for them.
An origin staying below the rate is flagged in the logs as its lifetime total doubles;
RateBudget::with_ceiling ends it, RateBudget::lifetime is a plain lifetime count.
Read like MaxInformationalResponses: from the input that opens a connection, else
from its transport, else from HttpConnector::with_refused_stream_budget. Without
any of them a connection tolerates a burst of 1000 such streams regained at 33 per
second. HTTP/1 ends its connection with such a request.
Tuple Fields§
§0: Option<RateBudget>Trait Implementations§
§impl Clone for RefusedStreamBudget
impl Clone for RefusedStreamBudget
§fn clone(&self) -> RefusedStreamBudget
fn clone(&self) -> RefusedStreamBudget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RefusedStreamBudget
§impl Debug for RefusedStreamBudget
impl Debug for RefusedStreamBudget
§impl Extension for RefusedStreamBudget
impl Extension for RefusedStreamBudget
§fn scope() -> ExtensionScopewhere
Self: Sized,
fn scope() -> ExtensionScopewhere
Self: Sized,
Extensions chain a lookup of this type resolves,
ExtensionScope::Flow unless the type says otherwise.impl HttpExtension for RefusedStreamBudget
Auto Trait Implementations§
impl Forget for RefusedStreamBudget
impl Freeze for RefusedStreamBudget
impl Move for RefusedStreamBudget
impl RefUnwindSafe for RefusedStreamBudget
impl Send for RefusedStreamBudget
impl Sync for RefusedStreamBudget
impl Unpin for RefusedStreamBudget
impl UnsafeUnpin for RefusedStreamBudget
impl UnwindSafe for RefusedStreamBudget
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
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> ⓘ
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 rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more