pub enum LuaPluginSystemsState {
NotLoaded,
Loaded {
systems: SendWrapper<LuaPluginSystems>,
executor: Arc<ThreadExecutor<'static>>,
},
Unloaded,
}
Expand description
The load state of the [`LuaPluginSystems
Variants§
NotLoaded
The systems have not been loaded yet.
Loaded
The systems have been loaded.
Unloaded
The LuaPlugin
has been dropped and it’s systems have been unloaded.
Implementations§
source§impl LuaPluginSystemsState
impl LuaPluginSystemsState
sourcepub fn as_loaded(&self) -> &LuaPluginSystems
pub fn as_loaded(&self) -> &LuaPluginSystems
Helper to get the loaded systems.
sourcepub fn as_loaded_mut(&mut self) -> &mut LuaPluginSystems
pub fn as_loaded_mut(&mut self) -> &mut LuaPluginSystems
Helper to get the loaded systems mutably.
Trait Implementations§
source§impl Default for LuaPluginSystemsState
impl Default for LuaPluginSystemsState
source§fn default() -> LuaPluginSystemsState
fn default() -> LuaPluginSystemsState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaPluginSystemsState
impl !RefUnwindSafe for LuaPluginSystemsState
impl Send for LuaPluginSystemsState
impl Sync for LuaPluginSystemsState
impl Unpin for LuaPluginSystemsState
impl !UnwindSafe for LuaPluginSystemsState
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
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &World) -> T
fn from_world(_world: &World) -> T
Creates
Self
using data from the given [World
].