pub struct RetentionPolicy {
pub ttl_ms: i64,
pub ack_grace_ms: i64,
pub keep_last: i64,
pub stale_device_ms: i64,
}Expand description
Retention knobs.
Fields§
§ttl_ms: i64Hard TTL: any message event older than this goes, acked or not.
ack_grace_ms: i64Grace after full ack before deletion (lets slow readers/retries land).
keep_last: i64Always keep this many newest message events per room.
stale_device_ms: i64A device that has not acked within this window no longer holds deletion back (it falls under the hard TTL).
Trait Implementations§
Source§impl Clone for RetentionPolicy
impl Clone for RetentionPolicy
impl Copy for RetentionPolicy
Source§impl Debug for RetentionPolicy
impl Debug for RetentionPolicy
Auto Trait Implementations§
impl Freeze for RetentionPolicy
impl RefUnwindSafe for RetentionPolicy
impl Send for RetentionPolicy
impl Sync for RetentionPolicy
impl Unpin for RetentionPolicy
impl UnsafeUnpin for RetentionPolicy
impl UnwindSafe for RetentionPolicy
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