pub struct LuaOptions { /* private fields */ }Expand description
Per-VM behavioral options. Mirrors mlua::LuaOptions.
Implementations§
Source§impl LuaOptions
impl LuaOptions
Sourcepub const fn new() -> LuaOptions
pub const fn new() -> LuaOptions
The default options (catch_rust_panics = true). Mirrors
mlua::LuaOptions::new.
Sourcepub const fn catch_rust_panics(self, enabled: bool) -> LuaOptions
pub const fn catch_rust_panics(self, enabled: bool) -> LuaOptions
Set whether Rust panics in callbacks are caught and converted to Lua
errors. Mirrors mlua::LuaOptions::catch_rust_panics.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LuaOptions
impl Freeze for LuaOptions
impl Move for LuaOptions
impl RefUnwindSafe for LuaOptions
impl Send for LuaOptions
impl Sync for LuaOptions
impl Unpin for LuaOptions
impl UnsafeUnpin for LuaOptions
impl UnwindSafe for LuaOptions
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