pub struct WsLimits {
pub max_frame_bytes: usize,
pub max_message_bytes: usize,
}Expand description
Frame and message size caps for an upgraded socket, seeded into the call by
the engine so on_upgrade can apply them without reaching for global state.
The two are separate on purpose: a peer that respects the frame cap can still send an unbounded number of small continuation frames that reassemble into one enormous message.
Fields§
§max_frame_bytes: usizeMaximum size of a single frame, in bytes.
max_message_bytes: usizeMaximum size of a reassembled message, in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsLimits
impl RefUnwindSafe for WsLimits
impl Send for WsLimits
impl Sync for WsLimits
impl Unpin for WsLimits
impl UnsafeUnpin for WsLimits
impl UnwindSafe for WsLimits
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