pub struct Config {
pub delta_ratio: Option<f64>,
}Expand description
Configuration for a Producer.
Fields§
§delta_ratio: Option<f64>Controls whether the producer emits deltas (merge patches) instead of full snapshots.
None disables deltas: every change is published as a new snapshot group.
Some(ratio) enables deltas. A delta is appended to the current group as long as the
group’s total size stays within ratio times the size of a fresh snapshot; otherwise a
new snapshot group is started. A larger ratio tolerates bigger groups before snapshotting.
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