pub struct LuauThread<'lua> { /* private fields */ }Implementations§
Source§impl LuauThread<'_>
impl LuauThread<'_>
Sourcepub unsafe fn from_ptr(
state: *mut _LuaState,
root_check: Rc<Cell<bool>>,
) -> Self
pub unsafe fn from_ptr( state: *mut _LuaState, root_check: Rc<Cell<bool>>, ) -> Self
§Safety
Must be a state pointer created from a main state created by rs-luau, either by the push_thread function or ffi
pub fn try_get_state(&self) -> Result<&Luau, MainStateDeadError>
pub fn get_state(&self) -> &Luau
Auto Trait Implementations§
impl<'lua> Freeze for LuauThread<'lua>
impl<'lua> !RefUnwindSafe for LuauThread<'lua>
impl<'lua> !Send for LuauThread<'lua>
impl<'lua> !Sync for LuauThread<'lua>
impl<'lua> Unpin for LuauThread<'lua>
impl<'lua> UnsafeUnpin for LuauThread<'lua>
impl<'lua> !UnwindSafe for LuauThread<'lua>
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