Enum rlua::ThreadStatus
source · pub enum ThreadStatus {
Resumable,
Unresumable,
Error,
}
Expand description
Status of a Lua thread (coroutine).
Variants§
Resumable
The thread was just created, or is suspended because it has called coroutine.yield
.
If a thread is in this state, it can be resumed by calling Thread::resume
.
Unresumable
Either the thread has finished executing, or the thread is currently running.
Error
The thread has raised a Lua error during execution.
Trait Implementations§
source§impl Clone for ThreadStatus
impl Clone for ThreadStatus
source§fn clone(&self) -> ThreadStatus
fn clone(&self) -> ThreadStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadStatus
impl Debug for ThreadStatus
source§impl PartialEq for ThreadStatus
impl PartialEq for ThreadStatus
source§fn eq(&self, other: &ThreadStatus) -> bool
fn eq(&self, other: &ThreadStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ThreadStatus
impl Eq for ThreadStatus
impl StructuralPartialEq for ThreadStatus
Auto Trait Implementations§
impl RefUnwindSafe for ThreadStatus
impl Send for ThreadStatus
impl Sync for ThreadStatus
impl Unpin for ThreadStatus
impl UnwindSafe for ThreadStatus
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