pub struct Keyspaces<'a> {
pub keys: &'a KeyspaceHandle,
pub acl: &'a KeyspaceHandle,
pub contexts: &'a KeyspaceHandle,
pub did_templates: &'a KeyspaceHandle,
pub audit: &'a KeyspaceHandle,
pub imported: &'a KeyspaceHandle,
pub memory: &'a KeyspaceHandle,
pub app_state: &'a KeyspaceHandle,
}Expand description
Shared bundle of borrowed keyspace handles passed to operations that need several keyspaces at once.
The struct is a pure field bundle — the constructors that borrow it from a
concrete AppState / VtaState live in vta-service (they know those
types), so this stays free of any vta-service dependency.
Fields§
§keys: &'a KeyspaceHandle§acl: &'a KeyspaceHandle§contexts: &'a KeyspaceHandle§did_templates: &'a KeyspaceHandle§audit: &'a KeyspaceHandle§imported: &'a KeyspaceHandle§memory: &'a KeyspaceHandlePer-context agent memory (MEMORY). Here so a context deletion can
take the context’s entries with it.
app_state: &'a KeyspaceHandlePer-context application state (APP_STATE). Here so a context
deletion can take the context’s records with it — left behind, they
reappear in any new context created under the same id.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Keyspaces<'a>
impl<'a> !UnwindSafe for Keyspaces<'a>
impl<'a> Freeze for Keyspaces<'a>
impl<'a> Send for Keyspaces<'a>
impl<'a> Sync for Keyspaces<'a>
impl<'a> Unpin for Keyspaces<'a>
impl<'a> UnsafeUnpin for Keyspaces<'a>
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