Struct DerivedStateReplayConfig
pub struct DerivedStateReplayConfig {
pub backend: DerivedStateReplayBackend,
pub replay_dir: PathBuf,
pub durability: DerivedStateReplayDurability,
pub max_envelopes: usize,
pub max_sessions: usize,
}Expand description
Typed replay retention configuration for derived-state consumers.
Fields§
§backend: DerivedStateReplayBackendReplay backend used to retain envelopes.
replay_dir: PathBufFilesystem directory used by the disk backend.
durability: DerivedStateReplayDurabilityDurability policy used by the disk backend.
max_envelopes: usizeMaximum number of retained envelopes per session.
max_sessions: usizeMaximum number of retained sessions visible to the disk backend.
Implementations§
§impl DerivedStateReplayConfig
impl DerivedStateReplayConfig
pub fn checkpoint_only() -> Self
pub fn checkpoint_only() -> Self
Returns a checkpoint-only replay configuration with no retained runtime tail.
This is the lowest-memory derived-state mode. Consumers rely on their own durable checkpoints and accept that retained envelope replay is unavailable.
pub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns whether the runtime-owned replay tail is enabled.
Trait Implementations§
§impl Clone for DerivedStateReplayConfig
impl Clone for DerivedStateReplayConfig
§fn clone(&self) -> DerivedStateReplayConfig
fn clone(&self) -> DerivedStateReplayConfig
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 more§impl Debug for DerivedStateReplayConfig
impl Debug for DerivedStateReplayConfig
§impl Default for DerivedStateReplayConfig
impl Default for DerivedStateReplayConfig
§impl PartialEq for DerivedStateReplayConfig
impl PartialEq for DerivedStateReplayConfig
impl Eq for DerivedStateReplayConfig
impl StructuralPartialEq for DerivedStateReplayConfig
Auto Trait Implementations§
impl Freeze for DerivedStateReplayConfig
impl RefUnwindSafe for DerivedStateReplayConfig
impl Send for DerivedStateReplayConfig
impl Sync for DerivedStateReplayConfig
impl Unpin for DerivedStateReplayConfig
impl UnsafeUnpin for DerivedStateReplayConfig
impl UnwindSafe for DerivedStateReplayConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more