pub struct Commands<'a>(/* private fields */);
Expand description
A SystemParam
that can be used to schedule systems that will be run at the end of the
current SystemStage
.
This is a shortcut for ResMut<CommandQueue>
.
Trait Implementations§
§impl<'a> SystemParam for Commands<'a>
impl<'a> SystemParam for Commands<'a>
§type State = AtomicResource<CommandQueue>
type State = AtomicResource<CommandQueue>
The intermediate state for the parameter, that may be extracted from the world.
§type Param<'s> = Commands<'s>
type Param<'s> = Commands<'s>
The type of the parameter, ranging over the lifetime of the intermediate state. Read more
§fn get_state(world: &World) -> <Commands<'a> as SystemParam>::State
fn get_state(world: &World) -> <Commands<'a> as SystemParam>::State
This is called to produce the intermediate state of the system parameter. Read more
§fn borrow<'s>(
_world: &'s World,
state: &'s mut <Commands<'a> as SystemParam>::State,
) -> <Commands<'a> as SystemParam>::Param<'s>
fn borrow<'s>( _world: &'s World, state: &'s mut <Commands<'a> as SystemParam>::State, ) -> <Commands<'a> as SystemParam>::Param<'s>
This is used create an instance of the system parame, possibly borrowed from the
intermediate parameter state.
Auto Trait Implementations§
impl<'a> Freeze for Commands<'a>
impl<'a> !RefUnwindSafe for Commands<'a>
impl<'a> Send for Commands<'a>
impl<'a> Sync for Commands<'a>
impl<'a> Unpin for Commands<'a>
impl<'a> !UnwindSafe for Commands<'a>
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