pub struct InSequence { /* private fields */ }Expand description
Same like Sequence with the different that all expectations that are added
after the InSequence has been defined are added to this sequence automatically.
InSequence is thread local.
Implementations§
Source§impl InSequence
impl InSequence
Sourcepub fn new(sequence: &Sequence) -> Self
pub fn new(sequence: &Sequence) -> Self
Create a new InSequence instance that automatically adds expectations
to the passed sequence.
Sourcepub fn create_handle() -> Option<SequenceHandle>
pub fn create_handle() -> Option<SequenceHandle>
Returns a new Some(SequenceHandle) for a sequence that was defined by InSequence
before. None is returned if no InSequence instance is known in the current
context.
Trait Implementations§
Source§impl Debug for InSequence
impl Debug for InSequence
Source§impl Default for InSequence
impl Default for InSequence
Auto Trait Implementations§
impl Freeze for InSequence
impl !RefUnwindSafe for InSequence
impl Send for InSequence
impl Sync for InSequence
impl Unpin for InSequence
impl !UnwindSafe for InSequence
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