pub struct Limits {
pub max_message_bytes: u32,
pub max_payload_bytes: u32,
pub max_records: u32,
pub max_allocation_bytes: u32,
}Expand description
Bounded decoder policy applied before a protocol allocates or creates records.
Fields§
§max_message_bytes: u32Maximum complete encoded message size.
max_payload_bytes: u32Maximum opaque payload size after the common envelope.
max_records: u32Maximum variable records a protocol decoder may construct.
max_allocation_bytes: u32Maximum aggregate allocation a protocol decoder may perform.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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