Struct specs::BatchAccessor
source · [−]pub struct BatchAccessor { /* private fields */ }
Expand description
The BatchAccessor
is used to notify the main dispatcher of the read and
write resources of the System
s contained in the batch (“sub systems”).
Implementations
sourceimpl BatchAccessor
impl BatchAccessor
sourcepub fn new(
reads: Vec<ResourceId, Global>,
writes: Vec<ResourceId, Global>
) -> BatchAccessor
pub fn new(
reads: Vec<ResourceId, Global>,
writes: Vec<ResourceId, Global>
) -> BatchAccessor
Creates a BatchAccessor
Trait Implementations
sourceimpl Accessor for BatchAccessor
impl Accessor for BatchAccessor
sourcefn try_new() -> Option<BatchAccessor>
fn try_new() -> Option<BatchAccessor>
Tries to create a new instance of this type. This one returns Some
in
case there is a default, otherwise the system needs to override
System::accessor
. Read more
sourcefn reads(&self) -> Vec<ResourceId, Global>
fn reads(&self) -> Vec<ResourceId, Global>
A list of ResourceId
s the bundle
needs read access to in order to
build the target resource bundle. Read more
sourcefn writes(&self) -> Vec<ResourceId, Global>
fn writes(&self) -> Vec<ResourceId, Global>
A list of ResourceId
s the bundle
needs write access to in order to
build the target resource bundle. Read more
Auto Trait Implementations
impl RefUnwindSafe for BatchAccessor
impl Send for BatchAccessor
impl Sync for BatchAccessor
impl Unpin for BatchAccessor
impl UnwindSafe for BatchAccessor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more