Struct shred::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§
source§impl BatchAccessor
impl BatchAccessor
sourcepub fn new(reads: Vec<ResourceId>, writes: Vec<ResourceId>) -> Self
pub fn new(reads: Vec<ResourceId>, writes: Vec<ResourceId>) -> Self
Creates a BatchAccessor
Trait Implementations§
source§impl Accessor for BatchAccessor
impl Accessor for BatchAccessor
source§fn try_new() -> Option<Self>
fn try_new() -> Option<Self>
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
.source§fn reads(&self) -> Vec<ResourceId>
fn reads(&self) -> Vec<ResourceId>
A list of
ResourceId
s the bundle
needs read access to in order to
build the target resource bundle. Read moresource§fn writes(&self) -> Vec<ResourceId>
fn writes(&self) -> Vec<ResourceId>
A list of
ResourceId
s the bundle
needs write access to in order to
build the target resource bundle. Read moreAuto Trait Implementations§
impl Freeze for BatchAccessor
impl RefUnwindSafe for BatchAccessor
impl Send for BatchAccessor
impl Sync for BatchAccessor
impl Unpin for BatchAccessor
impl UnwindSafe for BatchAccessor
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