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 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: IntoData<CommandBuffer>>(&mut self, data: D) -> Result<()>
pub fn execute_seq<D: IntoData<CommandBuffer>>(&mut self, data: D) -> Result<()>
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: IntoData<CommandBuffer> + Send + Sync>(
&mut self,
data: D,
) -> Result<()>
pub fn execute<D: IntoData<CommandBuffer> + Send + Sync>( &mut self, data: D, ) -> Result<()>
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 Freeze for Schedule
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more