pub struct VerifySession { /* private fields */ }Expand description
Drives verify-by-reread for one command over a stream of report messages.
Implementations§
Source§impl VerifySession
impl VerifySession
Sourcepub fn new(cmd: Command, seq: impl Into<String>) -> Self
pub fn new(cmd: Command, seq: impl Into<String>) -> Self
Start verifying cmd, which was published with seq as its sequence_id.
Sourcepub fn observe(&mut self, message: Value) -> Option<CommandOutcome>
pub fn observe(&mut self, message: Value) -> Option<CommandOutcome>
Feed one report message. Returns Some(outcome) once a verdict is
reached; None means keep waiting (feed the next message, or call
timed_out when the deadline passes).
Sourcepub fn timed_out(&self) -> CommandOutcome
pub fn timed_out(&self) -> CommandOutcome
The verdict when no conclusive message arrived before the timeout: distinguishes “never ACKed” from “ACKed but the effect never showed”.
Auto Trait Implementations§
impl Freeze for VerifySession
impl RefUnwindSafe for VerifySession
impl Send for VerifySession
impl Sync for VerifySession
impl Unpin for VerifySession
impl UnsafeUnpin for VerifySession
impl UnwindSafe for VerifySession
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