pub struct ScriptedRealtimeAdapter { /* private fields */ }Expand description
In-memory scripted realtime adapter fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
Implementations§
Source§impl ScriptedRealtimeAdapter
impl ScriptedRealtimeAdapter
Sourcepub fn new(adapter_ref: impl Into<String>) -> Self
pub fn new(adapter_ref: impl Into<String>) -> Self
Creates a new testing::realtime value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Sourcepub fn push_output(&self, frame: RealtimeOutputFrame)
pub fn push_output(&self, frame: RealtimeOutputFrame)
Push output. This reads or mutates deterministic in-memory test state unless the method explicitly names a fixture file.
Sourcepub fn fail_next_restart(&self, message: impl Into<String>)
pub fn fail_next_restart(&self, message: impl Into<String>)
Fail next restart. This reads or mutates deterministic in-memory test state unless the method explicitly names a fixture file.
Sourcepub fn calls(&self) -> Vec<RealtimeAdapterCall>
pub fn calls(&self) -> Vec<RealtimeAdapterCall>
Operates on in-memory or journal-derived testing::realtime state for diagnostics and repair evidence. It does not create a second run loop or product workflow owner.
Sourcepub fn call_names(&self) -> Vec<&'static str>
pub fn call_names(&self) -> Vec<&'static str>
Returns the call names currently held by this value. This configures deterministic in-memory test state only.
Trait Implementations§
Source§impl Clone for ScriptedRealtimeAdapter
impl Clone for ScriptedRealtimeAdapter
Source§fn clone(&self) -> ScriptedRealtimeAdapter
fn clone(&self) -> ScriptedRealtimeAdapter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more