pub enum ThreadStatus {
Resumable,
Running,
Normal,
Finished,
Error,
}Expand description
Status of a Lua thread (coroutine). Mirrors mlua::ThreadStatus.
Variants§
Resumable
The thread was just created or is suspended (yielded) and can be resumed.
Running
The thread is currently running.
Normal
The thread is active but not running (it resumed another thread).
Finished
The thread has finished executing.
Error
The thread raised a Lua error during execution.
Trait Implementations§
Source§impl Clone for ThreadStatus
impl Clone for ThreadStatus
impl Copy for ThreadStatus
Source§impl Debug for ThreadStatus
impl Debug for ThreadStatus
impl Eq for ThreadStatus
Source§impl PartialEq for ThreadStatus
impl PartialEq for ThreadStatus
impl StructuralPartialEq for ThreadStatus
Auto Trait Implementations§
impl Forget for ThreadStatus
impl Freeze for ThreadStatus
impl Move for ThreadStatus
impl RefUnwindSafe for ThreadStatus
impl Send for ThreadStatus
impl Sync for ThreadStatus
impl Unpin for ThreadStatus
impl UnsafeUnpin 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