pub struct LimitsConfiguration {Show 20 fields
pub max_envelope_bytes: usize,
pub max_request_bytes: usize,
pub max_response_bytes: usize,
pub max_publish_topics: usize,
pub max_query_topics: usize,
pub max_query_limit: usize,
pub default_query_limit: usize,
pub max_newest_metadata_topics: usize,
pub max_newest_full_topics: usize,
pub max_update_adds: usize,
pub max_update_removes: usize,
pub max_stream_topics: usize,
pub max_static_topics: usize,
pub max_lookup_identifiers: usize,
pub max_scw_signatures: usize,
pub max_identity_entries: usize,
pub max_update_frames_per_second: u32,
pub max_update_burst: u32,
pub max_ping_frames_per_second: u32,
pub max_ping_burst: u32,
}Expand description
Request shapes the deployment accepts. A client chunks its work to these values rather than to its compiled constants.
Fields§
§max_envelope_bytes: usize§max_request_bytes: usize§max_response_bytes: usize§max_publish_topics: usize§max_query_topics: usize§max_query_limit: usize§default_query_limit: usize§max_newest_metadata_topics: usize§max_newest_full_topics: usize§max_update_adds: usize§max_update_removes: usize§max_stream_topics: usize§max_static_topics: usize§max_lookup_identifiers: usize§max_scw_signatures: usize§max_identity_entries: usize§max_update_frames_per_second: u32§max_update_burst: u32§max_ping_frames_per_second: u32§max_ping_burst: u32Implementations§
Source§impl LimitsConfiguration
impl LimitsConfiguration
Sourcepub fn without_zeroes(&self) -> Self
pub fn without_zeroes(&self) -> Self
The same snapshot with every zero replaced by the compiled default.
CFG-031 already applies this rule to what arrives on the wire, so no
published configuration can carry a zero. A snapshot built in Rust and
handed in through a ConfigProvider (CFG-033) skips that conversion,
and a zero chunk dimension would panic the transport that slices its
work into chunks of it (CFG-064). Applying the wire rule once more,
where the transport reads the value, means it never can.
Trait Implementations§
Source§impl Clone for LimitsConfiguration
impl Clone for LimitsConfiguration
Source§fn clone(&self) -> LimitsConfiguration
fn clone(&self) -> LimitsConfiguration
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 LimitsConfiguration
impl Debug for LimitsConfiguration
Source§impl Default for LimitsConfiguration
impl Default for LimitsConfiguration
Source§impl PartialEq for LimitsConfiguration
impl PartialEq for LimitsConfiguration
Source§fn eq(&self, other: &LimitsConfiguration) -> bool
fn eq(&self, other: &LimitsConfiguration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LimitsConfiguration
impl StructuralPartialEq for LimitsConfiguration
Auto Trait Implementations§
impl Freeze for LimitsConfiguration
impl RefUnwindSafe for LimitsConfiguration
impl Send for LimitsConfiguration
impl Sync for LimitsConfiguration
impl Unpin for LimitsConfiguration
impl UnsafeUnpin for LimitsConfiguration
impl UnwindSafe for LimitsConfiguration
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<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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more