pub struct PeerLimits {
pub max_http_body_bytes: u64,
pub max_control_http_body_bytes: u64,
pub max_concurrent_requests: u32,
pub child_request_queue_capacity: u32,
pub max_retired_correlation_ids: u32,
pub control_queue_capacity: u32,
}Expand description
Peer-confirmed limits that must match exactly during handshake.
Fields§
§max_http_body_bytes: u64Maximum encoded data request or response body.
max_control_http_body_bytes: u64Maximum encoded control request or response body.
max_concurrent_requests: u32Maximum concurrently active request handlers.
child_request_queue_capacity: u32Maximum queued child data requests.
max_retired_correlation_ids: u32Maximum completed correlation IDs retained in one process session.
control_queue_capacity: u32Maximum queued control requests, with at least one reserved handler.
Implementations§
Source§impl PeerLimits
impl PeerLimits
Sourcepub const fn v1_defaults() -> Self
pub const fn v1_defaults() -> Self
Returns the V1 defaults.
Sourcepub fn validate(&self) -> Result<(), ProtocolError>
pub fn validate(&self) -> Result<(), ProtocolError>
Enforces non-zero V1 hard maxima.
Trait Implementations§
Source§impl Clone for PeerLimits
impl Clone for PeerLimits
Source§impl Debug for PeerLimits
impl Debug for PeerLimits
Source§impl<'de> Deserialize<'de> for PeerLimits
impl<'de> Deserialize<'de> for PeerLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerLimits
Source§impl PartialEq for PeerLimits
impl PartialEq for PeerLimits
Source§impl Serialize for PeerLimits
impl Serialize for PeerLimits
impl StructuralPartialEq for PeerLimits
Auto Trait Implementations§
impl Forget for PeerLimits
impl Freeze for PeerLimits
impl Move for PeerLimits
impl RefUnwindSafe for PeerLimits
impl Send for PeerLimits
impl Sync for PeerLimits
impl Unpin for PeerLimits
impl UnsafeUnpin for PeerLimits
impl UnwindSafe for PeerLimits
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.