pub struct EntityRuntimeHooks<C: CanisterKind> { /* private fields */ }Expand description
EntityRuntimeHooks
Per-entity runtime callbacks used for commit preparation and delete-side strong relation validation. Keeps entity and store routing metadata alongside callback roots so runtime recovery and structural preflight can resolve the right store without reintroducing typed entity parameters.
Implementations§
Source§impl<C: CanisterKind> EntityRuntimeHooks<C>
impl<C: CanisterKind> EntityRuntimeHooks<C>
Sourcepub const fn for_entity<E>() -> Selfwhere
E: EntityKind<Canister = C> + EntityValue,
pub const fn for_entity<E>() -> Selfwhere
E: EntityKind<Canister = C> + EntityValue,
Build runtime hooks from one entity type.
Auto Trait Implementations§
impl<C> Freeze for EntityRuntimeHooks<C>
impl<C> RefUnwindSafe for EntityRuntimeHooks<C>
impl<C> Send for EntityRuntimeHooks<C>
impl<C> Sync for EntityRuntimeHooks<C>
impl<C> Unpin for EntityRuntimeHooks<C>
impl<C> UnsafeUnpin for EntityRuntimeHooks<C>
impl<C> UnwindSafe for EntityRuntimeHooks<C>
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