pub struct InMemoryExecutionFactJournal { /* private fields */ }Expand description
Bounded in-memory implementation used by the native harness and tests.
Hosts may implement ExecutionFactJournal over a durable append log.
Implementations§
Source§impl InMemoryExecutionFactJournal
impl InMemoryExecutionFactJournal
pub fn new() -> Self
pub fn with_limits( max_facts_per_target: Option<usize>, max_bytes_per_target: Option<usize>, ) -> Self
pub fn append_event( &self, frame: ExecutionFrameV1, record: &RunEventRecord, ) -> Result<FactAppendOutcomeV1, JournalError>
Trait Implementations§
Source§impl Clone for InMemoryExecutionFactJournal
impl Clone for InMemoryExecutionFactJournal
Source§fn clone(&self) -> InMemoryExecutionFactJournal
fn clone(&self) -> InMemoryExecutionFactJournal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryExecutionFactJournal
impl Debug for InMemoryExecutionFactJournal
Source§impl ExecutionFactJournal for InMemoryExecutionFactJournal
impl ExecutionFactJournal for InMemoryExecutionFactJournal
fn append( &self, fact: ExecutionFactV1, ) -> Result<FactAppendOutcomeV1, JournalError>
fn page( &self, target: &ExecutionTargetV1, after_sequence: Option<u64>, limit: usize, ) -> Option<ExecutionFactPageV1>
fn snapshot( &self, target: &ExecutionTargetV1, ) -> Option<ExecutionFactSnapshotV1>
Source§fn append_run_event(
&self,
frame: ExecutionFrameV1,
record: &RunEventRecord,
) -> Result<FactAppendOutcomeV1, JournalError>
fn append_run_event( &self, frame: ExecutionFrameV1, record: &RunEventRecord, ) -> Result<FactAppendOutcomeV1, JournalError>
Adapt an existing Code run event into the digest-only fact contract.
Implementations may override this when their durable journal has a
native event encoder; the default keeps the conversion identical for
every host.
Auto Trait Implementations§
impl Freeze for InMemoryExecutionFactJournal
impl RefUnwindSafe for InMemoryExecutionFactJournal
impl Send for InMemoryExecutionFactJournal
impl Sync for InMemoryExecutionFactJournal
impl Unpin for InMemoryExecutionFactJournal
impl UnsafeUnpin for InMemoryExecutionFactJournal
impl UnwindSafe for InMemoryExecutionFactJournal
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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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