Struct oxygengine::prelude::UniverseCommands
source · pub struct UniverseCommands { /* private fields */ }
Implementations§
source§impl UniverseCommands
impl UniverseCommands
pub fn schedule<T>(&mut self, command: T)where T: UniverseCommand + 'static,
pub fn schedule_raw(&mut self, command: Box<dyn UniverseCommand, Global>)
pub fn schedule_fn<F>(&mut self, f: F)where F: FnMut(&mut Universe) + Send + Sync + 'static,
pub fn execute(&mut self) -> UniverseCommandsExecutor
Trait Implementations§
source§impl Default for UniverseCommands
impl Default for UniverseCommands
source§fn default() -> UniverseCommands
fn default() -> UniverseCommands
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UniverseCommands
impl Send for UniverseCommands
impl Sync for UniverseCommands
impl Unpin for UniverseCommands
impl !UnwindSafe for UniverseCommands
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> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more