Trait AttachmentQueries
pub trait AttachmentQueries: Host {
// Provided method
fn query<'key, T>(
&self,
key: &'key AttachmentType<T>,
) -> Result<AttachmentQuery<'key, AttachmentHolder, T>, AttachmentError>
where T: Send + Sync + 'static { ... }
}Expand description
Read queries available on either host side.
Provided Methods§
fn query<'key, T>(
&self,
key: &'key AttachmentType<T>,
) -> Result<AttachmentQuery<'key, AttachmentHolder, T>, AttachmentError>
fn query<'key, T>( &self, key: &'key AttachmentType<T>, ) -> Result<AttachmentQuery<'key, AttachmentHolder, T>, AttachmentError>
Capture a SNAPSHOT of membership and value bindings in the current dimension. Later changes appear only in fresh queries. This is a residency view: an entity removed but not yet swept may still appear; stale writes fail. Construction never clones or decodes values; iteration decodes lazily.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".