pub struct CodecLimits {
pub max_frame_bytes: usize,
pub max_binary_payload_bytes: usize,
}Expand description
Maximum accepted sizes for encoded frames and binary payloads.
Fields§
§max_frame_bytes: usizeMaximum total wire-frame size in bytes.
max_binary_payload_bytes: usizeMaximum binary payload size in bytes.
Trait Implementations§
Source§impl Clone for CodecLimits
impl Clone for CodecLimits
Source§fn clone(&self) -> CodecLimits
fn clone(&self) -> CodecLimits
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 CodecLimits
impl Debug for CodecLimits
Source§impl Default for CodecLimits
impl Default for CodecLimits
Source§impl PartialEq for CodecLimits
impl PartialEq for CodecLimits
Source§fn eq(&self, other: &CodecLimits) -> bool
fn eq(&self, other: &CodecLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CodecLimits
impl Eq 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