pub struct ObservationEngine { /* private fields */ }Implementations§
Source§impl ObservationEngine
impl ObservationEngine
pub fn new() -> Self
pub fn projection( &self, target: &ObservationTarget, ) -> Option<&SessionProjection>
pub fn projection_count(&self) -> usize
pub fn projections( &self, ) -> impl Iterator<Item = (&ObservationTarget, &SessionProjection)>
pub fn managed_runtime( &self, key: &ManagedSessionKey, ) -> Option<&RuntimeSessionKey>
pub fn durable_resume_cursors(&self) -> Vec<(NodeId, NodeCursor)>
pub fn checkpoint(&self) -> ObservationEngineCheckpointV1
pub fn restore( checkpoint: ObservationEngineCheckpointV1, ) -> Result<Self, ObservationEngineError>
pub fn prepare( &self, envelope: ObservationIngressEnvelope, ) -> Result<PreparedBatch, ObservationEngineError>
pub fn prepare_batch( &self, envelopes: &[ObservationIngressEnvelope], ) -> Result<PreparedBatch, ObservationEngineError>
pub fn prepare_resync( &self, batch: &ObservationResyncBatch, ) -> Result<PreparedBatch, ObservationEngineError>
Sourcepub fn prepare_record_inventory(
&self,
node_id: &NodeId,
incarnation_id: NodeIncarnationId,
records: &[ManagedRecordLink],
complete: bool,
) -> Result<PreparedBatch, ObservationEngineError>
pub fn prepare_record_inventory( &self, node_id: &NodeId, incarnation_id: NodeIncarnationId, records: &[ManagedRecordLink], complete: bool, ) -> Result<PreparedBatch, ObservationEngineError>
Atomically applies a bounded inventory of managed records for one exact Node incarnation.
Inventory is record/link state, not transport recovery evidence. This operation deliberately never clears or creates an observation transport gap.
Sourcepub fn accept(&mut self, prepared: PreparedBatch)
pub fn accept(&mut self, prepared: PreparedBatch)
Commits an already validated and fully reduced state without failure.
Trait Implementations§
Source§impl Clone for ObservationEngine
impl Clone for ObservationEngine
Source§impl Debug for ObservationEngine
impl Debug for ObservationEngine
Source§impl Default for ObservationEngine
impl Default for ObservationEngine
impl Eq for ObservationEngine
Source§impl PartialEq for ObservationEngine
impl PartialEq for ObservationEngine
impl StructuralPartialEq for ObservationEngine
Auto Trait Implementations§
impl Freeze for ObservationEngine
impl RefUnwindSafe for ObservationEngine
impl Send for ObservationEngine
impl Sync for ObservationEngine
impl Unpin for ObservationEngine
impl UnsafeUnpin for ObservationEngine
impl UnwindSafe for ObservationEngine
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