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.
Wire conversion already applies this rule, so no
published configuration can carry a zero. A snapshot built in Rust and
handed in through a ConfigProvider skips that conversion,
and a zero chunk dimension would panic the transport that slices its
work into chunks of it. 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