pub struct SessionReplay;Expand description
Replay dry-run di una sessione.
Implementations§
Source§impl SessionReplay
impl SessionReplay
Sourcepub fn replay_session(
wal: &Wal,
session_id: &Uuid,
) -> KernelResult<ReplayTimeline>
pub fn replay_session( wal: &Wal, session_id: &Uuid, ) -> KernelResult<ReplayTimeline>
Ricostruisce e valida formalmente la storia di una sessione.
- Legge le azioni per
seq ASC, senza chiamare alcun tool. - Simula gli eventi storici sulla FSM:
COMMITTED/COMPENSATEDimplicanoStartExecution+ToolSucceeded; unFAILEDsenza output implicaStartExecution+ToolFailed; unFAILEDcon output è un execute riuscito la cui compensazione fallì. - Un
PENDINGresiduo rende il replay incoerente (lanciare primarecover_dangling_sessions).
Auto Trait Implementations§
impl Freeze for SessionReplay
impl RefUnwindSafe for SessionReplay
impl Send for SessionReplay
impl Sync for SessionReplay
impl Unpin for SessionReplay
impl UnsafeUnpin for SessionReplay
impl UnwindSafe for SessionReplay
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