pub struct LiveIo { /* private fields */ }Expand description
Live-mode IO provider that records deterministic facts for later replay.
Implementations§
Source§impl LiveIo
impl LiveIo
Sourcepub fn new(
run_id: RunId,
state_id: StateId,
attempt: u32,
artifacts: Arc<dyn ArtifactStore>,
facts: FactIndex,
fact_recorder: Arc<dyn FactRecorder>,
transport: Box<dyn LiveIoTransport>,
) -> Self
pub fn new( run_id: RunId, state_id: StateId, attempt: u32, artifacts: Arc<dyn ArtifactStore>, facts: FactIndex, fact_recorder: Arc<dyn FactRecorder>, transport: Box<dyn LiveIoTransport>, ) -> Self
Creates a live IO provider for a specific state attempt.
Trait Implementations§
Source§impl IoProvider for LiveIo
impl IoProvider for LiveIo
Source§fn call<'life0, 'async_trait>(
&'life0 mut self,
call: IoCall,
) -> Pin<Box<dyn Future<Output = Result<IoResult, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 mut self,
call: IoCall,
) -> Pin<Box<dyn Future<Output = Result<IoResult, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes an IO request and returns the structured response.
Source§fn get_recorded_fact<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 FactKey,
) -> Pin<Box<dyn Future<Output = Result<Option<ArtifactId>, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_recorded_fact<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 FactKey,
) -> Pin<Box<dyn Future<Output = Result<Option<ArtifactId>, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Lookup recorded fact payload by key.
Source§fn record_value<'life0, 'async_trait>(
&'life0 mut self,
key: FactKey,
value: Value,
) -> Pin<Box<dyn Future<Output = Result<ArtifactId, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn record_value<'life0, 'async_trait>(
&'life0 mut self,
key: FactKey,
value: Value,
) -> Pin<Box<dyn Future<Output = Result<ArtifactId, IoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persist a deterministic structured value directly as a fact payload.
Auto Trait Implementations§
impl Freeze for LiveIo
impl !RefUnwindSafe for LiveIo
impl Send for LiveIo
impl !Sync for LiveIo
impl Unpin for LiveIo
impl UnsafeUnpin for LiveIo
impl !UnwindSafe for LiveIo
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