pub struct Policy {
pub debounce: Duration,
pub on_error: StoreOnError,
pub retries: u32,
pub max_value_bytes: Option<u64>,
}Expand description
The checkpoint policy knobs (store.checkpoint, store.durability,
store.on_error).
Fields§
§debounce: Duration§on_error: StoreOnError§retries: u32§max_value_bytes: Option<u64>Refuse a durable write whose serialized envelope exceeds this many
bytes (store.max_value_bytes; None = unbounded, the default).
This exists because a store’s WRITE limit and its READ limit need not
be the same number. An MCP-backed store reached through a broker can
accept a value on the way in and be unable to return it on the way
out — at which point the checkpoint is stranded: the write succeeded,
and the next BOOT RESTORE is what fails, when the agent is least able
to do anything about it. Refusing at write time keeps the failure where
an operator is looking and where store.on_error can act on it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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