pub struct WebSocketReviewLimits { /* private fields */ }Expand description
Validated finite runtime ceilings from one policy.
Implementations§
Source§impl WebSocketReviewLimits
impl WebSocketReviewLimits
Sourcepub const fn max_inbound_message_bytes(self) -> u64
pub const fn max_inbound_message_bytes(self) -> u64
Maximum bytes in one inbound application message.
Sourcepub const fn max_outbound_message_bytes(self) -> u64
pub const fn max_outbound_message_bytes(self) -> u64
Maximum bytes in one outbound application message.
Sourcepub const fn max_messages(self) -> u16
pub const fn max_messages(self) -> u16
Shared directional application-message count ceiling.
Sourcepub const fn max_control_frames(self) -> u16
pub const fn max_control_frames(self) -> u16
Connection-wide control-frame count ceiling.
Sourcepub const fn max_wall_time_ms(self) -> u64
pub const fn max_wall_time_ms(self) -> u64
Wall-clock ceiling in whole milliseconds.
Trait Implementations§
Source§impl Clone for WebSocketReviewLimits
impl Clone for WebSocketReviewLimits
Source§fn clone(&self) -> WebSocketReviewLimits
fn clone(&self) -> WebSocketReviewLimits
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 moreimpl Copy for WebSocketReviewLimits
Source§impl Debug for WebSocketReviewLimits
impl Debug for WebSocketReviewLimits
impl Eq for WebSocketReviewLimits
Source§impl PartialEq for WebSocketReviewLimits
impl PartialEq for WebSocketReviewLimits
impl StructuralPartialEq for WebSocketReviewLimits
Auto Trait Implementations§
impl Freeze for WebSocketReviewLimits
impl RefUnwindSafe for WebSocketReviewLimits
impl Send for WebSocketReviewLimits
impl Sync for WebSocketReviewLimits
impl Unpin for WebSocketReviewLimits
impl UnsafeUnpin for WebSocketReviewLimits
impl UnwindSafe for WebSocketReviewLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more