Struct AttachmentBatch
#[non_exhaustive]pub struct AttachmentBatch(/* private fields */);Expand description
A SNAPSHOT of membership and value bindings in the host’s current dimension. Later changes require a fresh query. This is a residency view: removed but unswept entities may appear, and stale writes fail. Native acquisition neither clones values nor decodes saved payloads; iteration decodes lazily. Codec-less attachment types are native-only; their rows do not cross to wasm.
Implementations§
§impl AttachmentBatch
impl AttachmentBatch
pub fn query<T>(
self,
key: &AttachmentType<T>,
) -> Result<AttachmentQuery<'_, AttachmentHolder, T>, AttachmentError>
pub fn query<T>( self, key: &AttachmentType<T>, ) -> Result<AttachmentQuery<'_, AttachmentHolder, T>, AttachmentError>
Bind a type without eagerly decoding or cloning any value. This view borrows only the key, never the host.
Trait Implementations§
§impl Clone for AttachmentBatch
impl Clone for AttachmentBatch
§fn clone(&self) -> AttachmentBatch
fn clone(&self) -> AttachmentBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl From<AttachmentBatch<AttachmentHolder>> for AttachmentBatch
impl From<AttachmentBatch<AttachmentHolder>> for AttachmentBatch
§fn from(batch: AttachmentBatch<AttachmentHolder>) -> AttachmentBatch
fn from(batch: AttachmentBatch<AttachmentHolder>) -> AttachmentBatch
Converts to this type from the input type.
§impl Wire for AttachmentBatch
impl Wire for AttachmentBatch
Auto Trait Implementations§
impl !RefUnwindSafe for AttachmentBatch
impl !UnwindSafe for AttachmentBatch
impl Freeze for AttachmentBatch
impl Send for AttachmentBatch
impl Sync for AttachmentBatch
impl Unpin for AttachmentBatch
impl UnsafeUnpin for AttachmentBatch
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