pub enum TransactionKind {
DelayNs(u64),
BlockingDelayNs(u64),
AsyncDelayNs(u64),
}
Available on crate feature
eh1
only.Expand description
MockDelay transaction kind.
Variants§
DelayNs(u64)
Expect any type of delay in nanoseconds.
The delay may be either blocking or async. In most cases, this is what you’ll want to use.
BlockingDelayNs(u64)
Expect a blocking delay in nanoseconds
The delay must be blocking. Expectation will fail for async delays.
AsyncDelayNs(u64)
Expect an async delay in nanoseconds
The delay must be async. Expectation will fail for blocking delays.
Trait Implementations§
Source§impl Clone for TransactionKind
impl Clone for TransactionKind
Source§fn clone(&self) -> TransactionKind
fn clone(&self) -> TransactionKind
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 moreSource§impl Debug for TransactionKind
impl Debug for TransactionKind
Source§impl PartialEq for TransactionKind
impl PartialEq for TransactionKind
impl Eq for TransactionKind
impl StructuralPartialEq for TransactionKind
Auto Trait Implementations§
impl Freeze for TransactionKind
impl RefUnwindSafe for TransactionKind
impl Send for TransactionKind
impl Sync for TransactionKind
impl Unpin for TransactionKind
impl UnwindSafe for TransactionKind
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