Struct ReplayControl
pub struct ReplayControl { /* private fields */ }Expand description
Control handle for a ReplayTransport that has been moved into a
session loop.
Implementations§
§impl ReplayControl
impl ReplayControl
pub fn release(&self)
pub fn release(&self)
Release the gated frames: inbound replay starts flowing.
Call this after subscribing to the session’s events so none are lost.
pub async fn drained(&self)
pub async fn drained(&self)
Wait until every recorded inbound frame has been handed to the session loop. Note: the last frame may still be in flight through the processor when this returns — wait for its observable effects (events, state) before asserting.
pub fn outbound_frames(&self) -> Vec<Vec<u8>>
pub fn outbound_frames(&self) -> Vec<Vec<u8>>
Snapshot the outbound frames collected so far (in send order).
Trait Implementations§
§impl Clone for ReplayControl
impl Clone for ReplayControl
§fn clone(&self) -> ReplayControl
fn clone(&self) -> ReplayControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReplayControl
impl !RefUnwindSafe for ReplayControl
impl Send for ReplayControl
impl Sync for ReplayControl
impl Unpin for ReplayControl
impl !UnwindSafe for ReplayControl
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