Enum me3_framework::scripting::lua::ThreadStatus
source · [−]pub enum ThreadStatus {
Resumable,
Unresumable,
Error,
}
Expand description
Status of a Lua thread (or 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
sourceimpl Clone for ThreadStatus
impl Clone for ThreadStatus
sourcefn clone(&self) -> ThreadStatus
fn clone(&self) -> ThreadStatus
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ThreadStatus
impl Debug for ThreadStatus
sourceimpl PartialEq<ThreadStatus> for ThreadStatus
impl PartialEq<ThreadStatus> for ThreadStatus
sourcefn eq(&self, other: &ThreadStatus) -> bool
fn eq(&self, other: &ThreadStatus) -> bool
impl Copy for ThreadStatus
impl Eq for ThreadStatus
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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