pub struct Config {
pub delta_ratio: u32,
}Expand description
Configuration for a Producer.
Fields§
§delta_ratio: u32Controls how aggressively the producer emits deltas (merge patches) instead of full snapshots.
A ratio of 0 disables deltas: every change is published as a new snapshot group.
A positive ratio enables deltas. A delta is appended to the current group as long as the
accumulated deltas (excluding the snapshot frame) stay within ratio times the size of a
fresh snapshot; otherwise a new snapshot group is started. So 1 allows deltas totalling up
to one snapshot before rolling, and a larger ratio tolerates more deltas per snapshot.
Defaults to 8.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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