pub struct ThreadableTester { /* private fields */ }
Expand description
A tester utility for Threadable
.
Implementations§
Source§impl ThreadableTester
impl ThreadableTester
Sourcepub fn take_statuses(&self) -> Vec<Status>
pub fn take_statuses(&self) -> Vec<Status>
Take the current Status
changes.
Sourcepub fn start_threadable<Threadable: Threadable>(
&self,
theadable: &Threadable,
thread_name: &str,
)
pub fn start_threadable<Threadable: Threadable>( &self, theadable: &Threadable, thread_name: &str, )
Start a Threadable
running the thread specified by the name, to completion in a separate thread.
Sourcepub fn wait_for_status(&self, status: &Status)
pub fn wait_for_status(&self, status: &Status)
Wait for a particular status to be reached.
§Panics
Will panic if the wait takes too long and times out.
Sourcepub fn wait_for_error_status(&self)
pub fn wait_for_error_status(&self)
Wait for an error status to be reached.
§Panics
Will panic if the wait takes too long and times out.
Sourcepub fn wait_for_finished(&self)
pub fn wait_for_finished(&self)
Wait for the thread started in start_threadable
to finish.
§Panics
Will panic if the wait takes too long and times out.
Trait Implementations§
Source§impl Clone for ThreadableTester
impl Clone for ThreadableTester
Source§fn clone(&self) -> ThreadableTester
fn clone(&self) -> ThreadableTester
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ThreadableTester
impl !RefUnwindSafe for ThreadableTester
impl Send for ThreadableTester
impl Sync for ThreadableTester
impl Unpin for ThreadableTester
impl !UnwindSafe for ThreadableTester
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