pub struct BacklogQuota {
pub limit_size: i64,
pub limit_time: i32,
pub policy: String,
}Expand description
Java BacklogQuota — one entry in the namespace-level backlog quota
map. policy is a string (producer_request_hold,
producer_exception, consumer_backlog_eviction) rather than a
closed Rust enum so new broker enum values forward-decode cleanly.
-1 on either limit dimension disables that axis — missing fields
default to -1 (not 0) so a broker-omitted dimension round-trips
as “no quota”, never as “expire-everything” or “block-everything”.
Fields§
§limit_size: i64Maximum allowed backlog in bytes (when type=destination_storage).
-1 = unlimited.
limit_time: i32Maximum allowed backlog age in seconds (when type=message_age).
-1 = unlimited.
policy: StringAction when the quota is exceeded.
Trait Implementations§
Source§impl Clone for BacklogQuota
impl Clone for BacklogQuota
Source§fn clone(&self) -> BacklogQuota
fn clone(&self) -> BacklogQuota
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 BacklogQuota
impl Debug for BacklogQuota
Source§impl Default for BacklogQuota
impl Default for BacklogQuota
Source§impl<'de> Deserialize<'de> for BacklogQuota
impl<'de> Deserialize<'de> for BacklogQuota
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 BacklogQuota
impl RefUnwindSafe for BacklogQuota
impl Send for BacklogQuota
impl Sync for BacklogQuota
impl Unpin for BacklogQuota
impl UnsafeUnpin for BacklogQuota
impl UnwindSafe for BacklogQuota
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