pub struct ProviderHttpOptions { /* private fields */ }Expand description
Bounded HTTP and SSE resource policy for provider exchanges.
Implementations§
Source§impl ProviderHttpOptions
impl ProviderHttpOptions
Sourcepub const HARD_MAXIMUM_REQUEST_BYTES: usize
pub const HARD_MAXIMUM_REQUEST_BYTES: usize
Absolute request body ceiling.
Sourcepub const HARD_MAXIMUM_RESPONSE_BYTES: usize
pub const HARD_MAXIMUM_RESPONSE_BYTES: usize
Absolute complete-response body ceiling.
Sourcepub const HARD_MAXIMUM_SSE_LINE_BYTES: usize
pub const HARD_MAXIMUM_SSE_LINE_BYTES: usize
Absolute SSE line ceiling.
Sourcepub const HARD_MAXIMUM_SSE_EVENT_BYTES: usize
pub const HARD_MAXIMUM_SSE_EVENT_BYTES: usize
Absolute SSE event ceiling.
Sourcepub const HARD_MAXIMUM_SSE_TOTAL_BYTES: usize
pub const HARD_MAXIMUM_SSE_TOTAL_BYTES: usize
Absolute total streaming body ceiling.
Sourcepub const fn new(
connect_timeout: Duration,
pool_idle_timeout: Duration,
maximum_request_bytes: usize,
maximum_response_bytes: usize,
maximum_sse_line_bytes: usize,
maximum_sse_event_bytes: usize,
maximum_sse_total_bytes: usize,
) -> Result<Self, ProviderHttpOptionsError>
pub const fn new( connect_timeout: Duration, pool_idle_timeout: Duration, maximum_request_bytes: usize, maximum_response_bytes: usize, maximum_sse_line_bytes: usize, maximum_sse_event_bytes: usize, maximum_sse_total_bytes: usize, ) -> Result<Self, ProviderHttpOptionsError>
Constructs an explicit bounded transport policy.
§Errors
Rejects zero durations/byte ceilings, implementation ceiling breaches, or an event ceiling smaller than its line ceiling.
Sourcepub const fn connect_timeout(self) -> Duration
pub const fn connect_timeout(self) -> Duration
Returns the TCP/TLS connection timeout.
Sourcepub const fn pool_idle_timeout(self) -> Duration
pub const fn pool_idle_timeout(self) -> Duration
Returns the idle connection retention bound.
Sourcepub const fn maximum_request_bytes(self) -> usize
pub const fn maximum_request_bytes(self) -> usize
Returns the serialized request ceiling.
Sourcepub const fn maximum_response_bytes(self) -> usize
pub const fn maximum_response_bytes(self) -> usize
Returns the complete successful response ceiling.
Sourcepub const fn maximum_sse_line_bytes(self) -> usize
pub const fn maximum_sse_line_bytes(self) -> usize
Returns the SSE line ceiling.
Sourcepub const fn maximum_sse_event_bytes(self) -> usize
pub const fn maximum_sse_event_bytes(self) -> usize
Returns the assembled SSE event ceiling.
Sourcepub const fn maximum_sse_total_bytes(self) -> usize
pub const fn maximum_sse_total_bytes(self) -> usize
Returns the total stream transport-byte ceiling.
Trait Implementations§
Source§impl Clone for ProviderHttpOptions
impl Clone for ProviderHttpOptions
impl Copy for ProviderHttpOptions
Source§impl Debug for ProviderHttpOptions
impl Debug for ProviderHttpOptions
Source§impl Default for ProviderHttpOptions
impl Default for ProviderHttpOptions
impl Eq for ProviderHttpOptions
Source§impl PartialEq for ProviderHttpOptions
impl PartialEq for ProviderHttpOptions
impl StructuralPartialEq for ProviderHttpOptions
Auto Trait Implementations§
impl Forget for ProviderHttpOptions
impl Freeze for ProviderHttpOptions
impl Move for ProviderHttpOptions
impl RefUnwindSafe for ProviderHttpOptions
impl Send for ProviderHttpOptions
impl Sync for ProviderHttpOptions
impl Unpin for ProviderHttpOptions
impl UnsafeUnpin for ProviderHttpOptions
impl UnwindSafe for ProviderHttpOptions
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request