pub struct Runtime<'runtime> { /* private fields */ }Expand description
A system the manages the lifetime of threads. This includes ensuring errors are handled, threads are paused and resumed on request and that once the main application is completed, all threads complete and end.
Implementations
sourceimpl<'runtime> Runtime<'runtime>
impl<'runtime> Runtime<'runtime>
sourcepub fn statuses(&self) -> ThreadStatuses
pub fn statuses(&self) -> ThreadStatuses
Get a cloned copy of the ThreadStatuses.
sourcepub fn register(&self, threadable: &'runtime mut dyn Threadable)
pub fn register(&self, threadable: &'runtime mut dyn Threadable)
Register a new Threadable.
Auto Trait Implementations
impl<'runtime> !RefUnwindSafe for Runtime<'runtime>
impl<'runtime> Send for Runtime<'runtime>
impl<'runtime> Sync for Runtime<'runtime>
impl<'runtime> Unpin for Runtime<'runtime>
impl<'runtime> !UnwindSafe for Runtime<'runtime>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more