pub struct GraphReplayLimits { /* private fields */ }Expand description
Memory ceiling for independently replaying one historical graph barrier.
The provider measures the compact serialized size of every fully verified pending result before retaining it for the deterministic planner. A single bounded result may transiently sit beside the retained set while the limit check runs, but the configured aggregate is never exceeded after insertion.
Implementations§
Source§impl GraphReplayLimits
impl GraphReplayLimits
Sourcepub const HARD_MAXIMUM_BARRIER_RESULT_BYTES: usize
pub const HARD_MAXIMUM_BARRIER_RESULT_BYTES: usize
Absolute implementation maximum for retained results in one barrier.
Sourcepub const fn new(
maximum_barrier_result_bytes: usize,
) -> Result<Self, StoreError>
pub const fn new( maximum_barrier_result_bytes: usize, ) -> Result<Self, StoreError>
Constructs a positive replay memory ceiling.
§Errors
Returns StoreError::InvalidGraphReplayLimits for zero or more than
512 MiB.
Sourcepub const fn maximum_barrier_result_bytes(self) -> usize
pub const fn maximum_barrier_result_bytes(self) -> usize
Returns the retained compact-result byte ceiling per barrier.
Trait Implementations§
Source§impl Clone for GraphReplayLimits
impl Clone for GraphReplayLimits
impl Copy for GraphReplayLimits
Source§impl Debug for GraphReplayLimits
impl Debug for GraphReplayLimits
Source§impl Default for GraphReplayLimits
impl Default for GraphReplayLimits
impl Eq for GraphReplayLimits
Source§impl Hash for GraphReplayLimits
impl Hash for GraphReplayLimits
Source§impl PartialEq for GraphReplayLimits
impl PartialEq for GraphReplayLimits
impl StructuralPartialEq for GraphReplayLimits
Auto Trait Implementations§
impl Forget for GraphReplayLimits
impl Freeze for GraphReplayLimits
impl Move for GraphReplayLimits
impl RefUnwindSafe for GraphReplayLimits
impl Send for GraphReplayLimits
impl Sync for GraphReplayLimits
impl Unpin for GraphReplayLimits
impl UnsafeUnpin for GraphReplayLimits
impl UnwindSafe for GraphReplayLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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