pub struct LuaScript { /* private fields */ }Expand description
Opaque executable source created only through bounded registration.
Implementations§
Source§impl LuaScript
impl LuaScript
pub fn new_safe( name: impl Into<String>, script_path: impl AsRef<Path>, approved_root: &Path, ) -> Result<Self, LuaRegistrationError>
pub fn new_safe_with_config( name: impl Into<String>, script_path: impl AsRef<Path>, approved_root: &Path, config: &LuaEngineConfig, ) -> Result<Self, LuaRegistrationError>
pub fn with_version( self, version: impl Into<String>, ) -> Result<Self, LuaRegistrationError>
pub fn with_categories(self, categories: Vec<ScriptCategory>) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
pub fn id(&self) -> String
pub fn manifest(&self) -> LuaScriptManifest
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaScript
impl RefUnwindSafe for LuaScript
impl Send for LuaScript
impl Sync for LuaScript
impl Unpin for LuaScript
impl UnsafeUnpin for LuaScript
impl UnwindSafe for LuaScript
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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