Struct ReplaySession
pub struct ReplaySession { /* private fields */ }Expand description
A replayed session: the live handle plus the replay controls.
Implementations§
§impl ReplaySession
impl ReplaySession
pub fn handle(&self) -> &LiveHandle
pub fn handle(&self) -> &LiveHandle
The live handle — same type a real connection returns. state(),
events(), telemetry(), extracted() all work.
pub fn release(&self)
pub fn release(&self)
Start streaming the recorded inbound frames. Call after subscribing
to LiveHandle::events.
pub async fn drained(&self)
pub async fn drained(&self)
Wait until every recorded inbound frame has been handed to the session
loop. The last frame’s effects may still be propagating through the
processor — use collect_events_until_idle (or assert on state) to
settle.
pub fn outbound_frames(&self) -> Vec<Vec<u8>>
pub fn outbound_frames(&self) -> Vec<Vec<u8>>
Outbound frames the replayed session has sent so far (setup, tool responses, …), in send order, for comparison against the recorded log.
pub async fn disconnect(&self) -> Result<(), SessionError>
pub async fn disconnect(&self) -> Result<(), SessionError>
Disconnect the replayed session.
Auto Trait Implementations§
impl Freeze for ReplaySession
impl !RefUnwindSafe for ReplaySession
impl Send for ReplaySession
impl Sync for ReplaySession
impl Unpin for ReplaySession
impl !UnwindSafe for ReplaySession
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