Struct bevy_async_ecs::CommandQueueSender
source · pub struct CommandQueueSender(/* private fields */);
Expand description
Use this to send commands (stored in CommandQueue
s) directly to the Bevy World, where they will
be applied during the Last schedule.
This sender internally operates on CommandQueue
s rather than individual commands.
Single commands can still be sent with CommandQueueSender::send_single()
.
The easiest way to get a CommandQueueSender
is with AsyncWorld::sender()
.
Implementations§
source§impl CommandQueueSender
impl CommandQueueSender
sourcepub async fn send_queue(&self, inner_queue: CommandQueue)
pub async fn send_queue(&self, inner_queue: CommandQueue)
Sends an CommandQueue
directly to the Bevy World
, where they will be applied during
the Last
schedule.
sourcepub async fn send_single(&self, single: BoxedCommand)
pub async fn send_single(&self, single: BoxedCommand)
Sends a (boxed) Command
directly to the Bevy World
, where they it be applied during
the Last
schedule.
Trait Implementations§
source§impl Clone for CommandQueueSender
impl Clone for CommandQueueSender
source§fn clone(&self) -> CommandQueueSender
fn clone(&self) -> CommandQueueSender
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandQueueSender
impl Debug for CommandQueueSender
source§impl From<CommandQueueSender> for AsyncWorld
impl From<CommandQueueSender> for AsyncWorld
source§fn from(sender: CommandQueueSender) -> Self
fn from(sender: CommandQueueSender) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandQueueSender
impl RefUnwindSafe for CommandQueueSender
impl Send for CommandQueueSender
impl Sync for CommandQueueSender
impl Unpin for CommandQueueSender
impl UnwindSafe for CommandQueueSender
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.