pub struct PublishRate {
pub publish_throttling_rate_in_msg: i32,
pub publish_throttling_rate_in_byte: i64,
}Expand description
Java PublishRate — producer-side throttle (msg/sec + byte/sec).
-1 on either dimension disables that axis of the throttle.
Missing fields default to -1 (not 0) — same sentinel semantics
as DispatchRate. Unlike DispatchRate, there is no
rate-period field; the broker uses a fixed 1-second window.
Fields§
§publish_throttling_rate_in_msg: i32Throttle in messages/sec. -1 = unlimited.
publish_throttling_rate_in_byte: i64Throttle in bytes/sec. -1 = unlimited.
Trait Implementations§
Source§impl Clone for PublishRate
impl Clone for PublishRate
Source§fn clone(&self) -> PublishRate
fn clone(&self) -> PublishRate
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 PublishRate
Source§impl Debug for PublishRate
impl Debug for PublishRate
Source§impl Default for PublishRate
impl Default for PublishRate
Source§impl<'de> Deserialize<'de> for PublishRate
impl<'de> Deserialize<'de> for PublishRate
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
Auto Trait Implementations§
impl Freeze for PublishRate
impl RefUnwindSafe for PublishRate
impl Send for PublishRate
impl Sync for PublishRate
impl Unpin for PublishRate
impl UnsafeUnpin for PublishRate
impl UnwindSafe for PublishRate
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