[−][src]Struct shred::DefaultBatchControllerSystem
The DefaultBatchControllerSystem
is a simple implementation that will
dispatch the inner dispatcher one time.
Usually you want to create your own Dispatcher
.
Is safe to implement Send
and Sync
because the BatchAccessor
keep
tracks of all used resources and thus the System
can be safely executed in
multi thread.
Trait Implementations
impl<'a, 'b> BatchController<'a, 'b> for DefaultBatchControllerSystem<'a, 'b>
[src]
type BatchSystemData = ()
This associated type has to contain all resources batch controller uses directly. Read more
unsafe fn create(
accessor: BatchAccessor,
dispatcher: Dispatcher<'a, 'b>
) -> Self
[src]
accessor: BatchAccessor,
dispatcher: Dispatcher<'a, 'b>
) -> Self
impl<'a, '_, '_> System<'a> for DefaultBatchControllerSystem<'_, '_>
[src]
type SystemData = BatchUncheckedWorld<'a>
The resource bundle required to execute this system. Read more
fn run(&mut self, data: Self::SystemData)
[src]
fn running_time(&self) -> RunningTime
[src]
fn accessor<'c>(&'c self) -> AccessorCow<'a, 'c, Self>
[src]
fn setup(&mut self, world: &mut World)
[src]
fn dispose(self, world: &mut World) where
Self: Sized,
[src]
Self: Sized,
Performs clean up that requires resources from the World
. This commonly removes components from world
which depend on external resources. Read more
impl<'a, 'b> Send for DefaultBatchControllerSystem<'a, 'b>
[src]
Is safe to implement Send
and Sync
because the BatchAccessor
keep
tracks of all used resources and thus the System
can be safely executed in
multi thread.
Auto Trait Implementations
impl<'a, 'b> Unpin for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !Sync for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !UnwindSafe for DefaultBatchControllerSystem<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DefaultBatchControllerSystem<'a, 'b>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,