Enum nvim_utils::prelude::LuaThreadStatus
source · pub enum LuaThreadStatus {
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§
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<ThreadStatus> for ThreadStatus
impl PartialEq<ThreadStatus> 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 ==
.