Skip to main content

LimitsConfiguration

Struct LimitsConfiguration 

Source
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: u32

Implementations§

Source§

impl LimitsConfiguration

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for LimitsConfiguration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LimitsConfiguration

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for LimitsConfiguration

Source§

fn eq(&self, other: &LimitsConfiguration) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for LimitsConfiguration

Source§

impl StructuralPartialEq for LimitsConfiguration

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.