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>) -> BatchAccessor
pub fn new(reads: Vec<ResourceId>, writes: Vec<ResourceId>) -> BatchAccessor
Creates a BatchAccessor
Trait Implementations§
Source§impl Accessor for BatchAccessor
impl Accessor for BatchAccessor
Source§fn 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
.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
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