pub struct Schedule { /* private fields */ }
Expand description
A shedule represents a collections of system which will run with effects in a determined order.
Implementations§
source§impl Schedule
impl Schedule
sourcepub fn new(batches: Vec<Batch, Global>) -> Schedule
pub fn new(batches: Vec<Batch, Global>) -> Schedule
Creates a new schedule from provided batches.
sourcepub fn batch_info(&self) -> BatchInfo<'_>
pub fn batch_info(&self) -> BatchInfo<'_>
Returns information of how the schedule was split into batches
sourcepub fn builder() -> ScheduleBuilder
pub fn builder() -> ScheduleBuilder
Creates a new ScheduleBuilder
sourcepub fn execute_seq<D>(&mut self, data: D) -> Result<(), Error>where
D: IntoData<CommandBuffer>,
pub fn execute_seq<D>(&mut self, data: D) -> Result<(), Error>where D: IntoData<CommandBuffer>,
Executes the systems inside the schedule sequentially using the provided data, which is a tuple of mutable references. Returns Err if any system fails.
A commandbuffer is always available and will be flushed at the end.
sourcepub fn execute<D>(&mut self, data: D) -> Result<(), Error>where
D: IntoData<CommandBuffer> + Send + Sync,
pub fn execute<D>(&mut self, data: D) -> Result<(), Error>where D: IntoData<CommandBuffer> + Send + Sync,
Executes the systems inside the schedule ina parallel using the provided data, which is a tuple of mutable references. Returns Err if any system fails
A commandbuffer is always available and will be flushed at the end.
sourcepub fn cmd(&self) -> &CommandBuffer
pub fn cmd(&self) -> &CommandBuffer
Get a reference to the schedule’s cmd.
sourcepub fn cmd_mut(&mut self) -> &mut CommandBuffer
pub fn cmd_mut(&mut self) -> &mut CommandBuffer
Get a mutable reference to the schedule’s cmd.
Auto Trait Implementations§
impl !RefUnwindSafe for Schedule
impl Send for Schedule
impl !Sync for Schedule
impl Unpin for Schedule
impl !UnwindSafe for Schedule
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.