pub struct ArcStatefulTester { /* private fields */ }Expand description
A thread-safe shared stateful tester backed by Arc<Mutex<_>>.
Clones of an ArcStatefulTester share the same mutable closure state and
can be moved across threads.
Implementations§
Source§impl ArcStatefulTester
impl ArcStatefulTester
Sourcepub fn and<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
pub fn and<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
Combines this tester with another stateful tester using logical AND.
Sourcepub fn or<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
pub fn or<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
Combines this tester with another stateful tester using logical OR.
Sourcepub fn nand<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
pub fn nand<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
Combines this tester with another stateful tester using logical NAND.
Sourcepub fn xor<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
pub fn xor<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
Combines this tester with another stateful tester using logical XOR.
Sourcepub fn nor<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
pub fn nor<T>(&self, next: T) -> ArcStatefulTesterwhere
T: StatefulTester + Send + 'static,
Combines this tester with another stateful tester using logical NOR.
Trait Implementations§
Source§impl Clone for ArcStatefulTester
impl Clone for ArcStatefulTester
Source§impl Not for &ArcStatefulTester
impl Not for &ArcStatefulTester
Source§impl Not for ArcStatefulTester
impl Not for ArcStatefulTester
Source§impl StatefulTester for ArcStatefulTester
impl StatefulTester for ArcStatefulTester
Source§fn into_box(self) -> BoxStatefulTester
fn into_box(self) -> BoxStatefulTester
Converts this tester to
BoxStatefulTester.Source§fn into_rc(self) -> RcStatefulTester
fn into_rc(self) -> RcStatefulTester
Converts this tester to
RcStatefulTester.Source§fn into_arc(self) -> ArcStatefulTester
fn into_arc(self) -> ArcStatefulTester
Converts this tester to
ArcStatefulTester.Source§fn into_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
fn into_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
Converts this tester to a mutable closure. Read more
Source§fn into_mut_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
fn into_mut_fn(self) -> impl FnMut() -> boolwhere
Self: Sized + 'static,
Converts this tester to a mutable closure with an explicit method name. Read more
Source§fn to_box(&self) -> BoxStatefulTester
fn to_box(&self) -> BoxStatefulTester
Converts a clone of this tester to
BoxStatefulTester.Source§fn to_rc(&self) -> RcStatefulTester
fn to_rc(&self) -> RcStatefulTester
Converts a clone of this tester to
RcStatefulTester.Source§fn to_arc(&self) -> ArcStatefulTester
fn to_arc(&self) -> ArcStatefulTester
Converts a clone of this tester to
ArcStatefulTester.Auto Trait Implementations§
impl Freeze for ArcStatefulTester
impl !RefUnwindSafe for ArcStatefulTester
impl Send for ArcStatefulTester
impl Sync for ArcStatefulTester
impl Unpin for ArcStatefulTester
impl UnsafeUnpin for ArcStatefulTester
impl !UnwindSafe for ArcStatefulTester
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