Enum mlua::ThreadStatus [−][src]
pub enum ThreadStatus { Resumable, Unresumable, Error, }
Expand description
Status of a Lua thread (or coroutine).
Variants
Expand description
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
.
Expand description
Either the thread has finished executing, or the thread is currently running.
Expand description
The thread has raised a Lua error during execution.
Trait Implementations
impl Clone for ThreadStatus
[src]
impl Clone for ThreadStatus
[src]fn clone(&self) -> ThreadStatus
[src]
fn clone(&self) -> ThreadStatus
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ThreadStatus
[src]
impl Debug for ThreadStatus
[src]impl PartialEq<ThreadStatus> for ThreadStatus
[src]
impl PartialEq<ThreadStatus> for ThreadStatus
[src]impl Copy for ThreadStatus
[src]
impl Eq for ThreadStatus
[src]
impl StructuralEq for ThreadStatus
[src]
impl StructuralPartialEq for ThreadStatus
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more