Struct mlua_luau_scheduler::ThreadId
source · pub struct ThreadId { /* private fields */ }
Expand description
Opaque and unique ID representing a LuaThread
.
Typically used for associating metadata with a thread in a structure such as a HashMap<ThreadId, ...>
.
Note that holding a ThreadId
does not prevent the thread from being garbage collected.
The actual thread may or may not still exist and be active at any given point in time.
Trait Implementations§
source§impl PartialEq for ThreadId
impl PartialEq for ThreadId
impl Copy for ThreadId
impl Eq for ThreadId
impl StructuralPartialEq for ThreadId
Auto Trait Implementations§
impl RefUnwindSafe for ThreadId
impl Send for ThreadId
impl Sync for ThreadId
impl Unpin for ThreadId
impl UnwindSafe for ThreadId
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