pub struct StateBounds {
pub max_size: usize,
pub rate_limit: Option<RateLimit>,
pub max_entropy: f64,
}Expand description
State bounds - constraints on state values
Fields§
§max_size: usizeMaximum size in bytes
rate_limit: Option<RateLimit>Rate limit (events per second)
max_entropy: f64Maximum entropy before compression
Trait Implementations§
Source§impl Clone for StateBounds
impl Clone for StateBounds
Source§fn clone(&self) -> StateBounds
fn clone(&self) -> StateBounds
Returns a duplicate of the value. Read more
1.0.0 · 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 StateBounds
impl Debug for StateBounds
Auto Trait Implementations§
impl Freeze for StateBounds
impl RefUnwindSafe for StateBounds
impl Send for StateBounds
impl Sync for StateBounds
impl Unpin for StateBounds
impl UnwindSafe for StateBounds
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