Enum mlua::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
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
Mutably borrows from an owned value. Read more