pub struct MockInvocation {
pub worker_id: WorkerId,
pub command: Option<String>,
pub phase: Phase,
pub timestamp: SystemTime,
}Expand description
Recorded invocation for mock verification.
Fields§
§worker_id: WorkerIdWorker ID the invocation was made against.
command: Option<String>Command that was executed (if applicable).
phase: PhasePhase of the invocation.
timestamp: SystemTimeTimestamp of invocation.
Trait Implementations§
Source§impl Clone for MockInvocation
impl Clone for MockInvocation
Source§fn clone(&self) -> MockInvocation
fn clone(&self) -> MockInvocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MockInvocation
impl RefUnwindSafe for MockInvocation
impl Send for MockInvocation
impl Sync for MockInvocation
impl Unpin for MockInvocation
impl UnsafeUnpin for MockInvocation
impl UnwindSafe for MockInvocation
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