pub struct ContainerAccess {
pub access: Access,
pub reads: Vec<String>,
pub writes: Vec<String>,
pub detect: BTreeMap<String, bool>,
pub opaque: bool,
}Expand description
One container’s (knot/stitch’s) joined ECS access — the output of folding
an EffectRowEntry through the CapabilityManifest and
CapabilityRegistry (docs/effects-spec.md §9).
Fields§
§access: AccessThe joined access, in bevy’s own currency (§12.2: “the row-join output
is the same currency as bevy’s FilteredAccessSet”). BH-3’s parallel
step phase tests flow disjointness with Access::is_compatible on
this directly.
reads: Vec<String>Capability names this container reads, sorted — the human-readable
projection of access’s read set, for dump_container_access.
writes: Vec<String>Capability names this container writes, sorted.
detect: BTreeMap<String, bool>Capability name → change-detection-backed bit, AND-merged across
every call this container’s row (and its dispatch fallbacks) may
perform (#913, ruled 2026-07-18): the capability is detect-capable
for this container only if EVERY read of it is detect-capable, so a
single non-detectable read folds the bit to the conservative false
(must-poll). BH-4’s Detect phase (crate::sleep) consumes this to
decide a sleeping flow’s re-evaluation cadence.
opaque: boolWhether any part of this row hit the pessimal top element
(docs/effects-spec.md §3: a call whose effects inference couldn’t
summarize). When set, access is read_all+write_all rather than
the joined capability set — conservative-total, never under-report.
Trait Implementations§
Source§impl Clone for ContainerAccess
impl Clone for ContainerAccess
Source§fn clone(&self) -> ContainerAccess
fn clone(&self) -> ContainerAccess
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContainerAccess
impl Debug for ContainerAccess
Source§impl Default for ContainerAccess
impl Default for ContainerAccess
Source§fn default() -> ContainerAccess
fn default() -> ContainerAccess
Auto Trait Implementations§
impl Freeze for ContainerAccess
impl RefUnwindSafe for ContainerAccess
impl Send for ContainerAccess
impl Sync for ContainerAccess
impl Unpin for ContainerAccess
impl UnsafeUnpin for ContainerAccess
impl UnwindSafe for ContainerAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> FromTemplate for T
impl<T> FromTemplate for T
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
impl<T> Settings for T
Source§impl<T> Template for T
impl<T> Template for T
Source§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a Template::Output.Source§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.