pub enum CoroStatus {
Suspended,
Running,
Normal,
Dead,
}Expand description
Lua coroutine status (PUC coroutine.status).
Variants§
Suspended
created or yielded — resumable
Running
currently executing (the running thread)
Normal
resumed another coroutine and is waiting for it
Dead
finished or errored — not resumable
Trait Implementations§
Source§impl Clone for CoroStatus
impl Clone for CoroStatus
Source§fn clone(&self) -> CoroStatus
fn clone(&self) -> CoroStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoroStatus
Source§impl Debug for CoroStatus
impl Debug for CoroStatus
impl Eq for CoroStatus
Source§impl PartialEq for CoroStatus
impl PartialEq for CoroStatus
Source§fn eq(&self, other: &CoroStatus) -> bool
fn eq(&self, other: &CoroStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoroStatus
Auto Trait Implementations§
impl Freeze for CoroStatus
impl RefUnwindSafe for CoroStatus
impl Send for CoroStatus
impl Sync for CoroStatus
impl Unpin for CoroStatus
impl UnsafeUnpin for CoroStatus
impl UnwindSafe for CoroStatus
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