pub struct CodecLimits { /* private fields */ }Expand description
Reviewed finite codec limits. Builders may only lower these defaults in I3.
Implementations§
Source§impl CodecLimits
impl CodecLimits
pub const fn with_max_body_bytes(self, value: usize) -> Self
pub const fn with_max_json_depth(self, value: usize) -> Self
pub const fn with_max_json_nodes(self, value: usize) -> Self
pub const fn with_max_string_bytes(self, value: usize) -> Self
pub const fn with_max_number_bytes(self, value: usize) -> Self
pub const fn with_max_sse_line_bytes(self, value: usize) -> Self
pub const fn with_max_sse_frame_bytes(self, value: usize) -> Self
pub const fn with_max_sse_events(self, value: usize) -> Self
pub const fn with_max_sse_indices(self, value: usize) -> Self
pub const fn with_max_sse_accumulator_bytes(self, value: usize) -> Self
pub const fn max_body_bytes(self) -> usize
pub const fn max_json_depth(self) -> usize
pub const fn max_json_nodes(self) -> usize
pub const fn max_string_bytes(self) -> usize
pub const fn max_number_bytes(self) -> usize
pub const fn max_sse_line_bytes(self) -> usize
pub const fn max_sse_frame_bytes(self) -> usize
pub const fn max_sse_events(self) -> usize
pub const fn max_sse_indices(self) -> usize
pub const fn max_sse_accumulator_bytes(self) -> usize
Trait Implementations§
Source§impl Clone for CodecLimits
impl Clone for CodecLimits
impl Copy for CodecLimits
Source§impl Debug for CodecLimits
impl Debug for CodecLimits
Source§impl Default for CodecLimits
impl Default for CodecLimits
impl Eq for CodecLimits
Source§impl PartialEq for CodecLimits
impl PartialEq for CodecLimits
impl StructuralPartialEq for CodecLimits
Auto Trait Implementations§
impl Freeze for CodecLimits
impl RefUnwindSafe for CodecLimits
impl Send for CodecLimits
impl Sync for CodecLimits
impl Unpin for CodecLimits
impl UnsafeUnpin for CodecLimits
impl UnwindSafe for CodecLimits
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
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§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.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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