Skip to main content

AttachmentQueriesMut

Trait AttachmentQueriesMut 

pub trait AttachmentQueriesMut: ServerHost {
    // Provided method
    fn query_mut<'key, T>(
        &mut self,
        key: &'key AttachmentType<T>,
    ) -> Result<AttachmentQueryMut<'key, T>, AttachmentError>
       where T: Clone + Send + Sync + 'static { ... }
}
Expand description

Explicit write-through queries, available only on server hosts.

Provided Methods§

fn query_mut<'key, T>( &mut self, key: &'key AttachmentType<T>, ) -> Result<AttachmentQueryMut<'key, T>, AttachmentError>
where T: Clone + Send + Sync + 'static,

Capture a SNAPSHOT, not mutable references into the live store. Set/remove join the caller’s journal; no implicit transaction or Drop commit occurs. Later changes require a fresh query, and stale writes fail.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<H> AttachmentQueriesMut for H
where H: ServerHost + ?Sized,