#[repr(u8)]pub enum ThreadState {
Init = 0,
Allocated = 1,
Running = 2,
}
Expand description
States a Zephyr thread can be in.
Variants§
Init = 0
A non running thread, that is free.
Allocated = 1
An allocated thread. There is a ThreadHandle for this thread, but it has not been started.
Running = 2
A thread that is running, as far as we know. Termination is not checked unless demanded.
Auto Trait Implementations§
impl Freeze for ThreadState
impl RefUnwindSafe for ThreadState
impl Send for ThreadState
impl Sync for ThreadState
impl Unpin for ThreadState
impl UnwindSafe for ThreadState
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