pub struct ThreadStatuses { /* private fields */ }
Expand description
Tracker for threads current Status
s.
Implementations§
Source§impl ThreadStatuses
impl ThreadStatuses
Sourcepub fn wait_for_status(
&self,
thread_name: &str,
expected_status: &Status,
) -> Result<(), RuntimeError>
pub fn wait_for_status( &self, thread_name: &str, expected_status: &Status, ) -> Result<(), RuntimeError>
Wait for a thread with a particular name to reach an expected Status
.
§Errors
Will error if the wait times out.
Trait Implementations§
Source§impl Clone for ThreadStatuses
impl Clone for ThreadStatuses
Source§fn clone(&self) -> ThreadStatuses
fn clone(&self) -> ThreadStatuses
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 ThreadStatuses
impl !RefUnwindSafe for ThreadStatuses
impl Send for ThreadStatuses
impl Sync for ThreadStatuses
impl Unpin for ThreadStatuses
impl !UnwindSafe for ThreadStatuses
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