pub(crate) struct DebugRegistry {
repos: RwLock<HashMap<TypeId, DebugRepo>>,
}Expand description
Index of per-type shims, keyed by TypeId. Held by StateRegistry so the
generic debug surface can address any registered repository by its string
name and key.
Fields§
§repos: RwLock<HashMap<TypeId, DebugRepo>>Implementations§
Source§impl DebugRegistry
impl DebugRegistry
Sourcepub(crate) fn register<T: RepositoryItem>(&self)
pub(crate) fn register<T: RepositoryItem>(&self)
Capture shims for a client-managed type at its registration point.
Sourcepub(crate) fn register_migrations(&self, migrations: &RepositoryMigrations)
pub(crate) fn register_migrations(&self, migrations: &RepositoryMigrations)
Capture shims for every SDK-managed type declared in the migrations, each
carried on its RepositoryItemData
from the point where the type was still known.
fn insert(&self, type_id: TypeId, repo: DebugRepo)
Trait Implementations§
Source§impl Default for DebugRegistry
impl Default for DebugRegistry
Source§fn default() -> DebugRegistry
fn default() -> DebugRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DebugRegistry
impl RefUnwindSafe for DebugRegistry
impl Send for DebugRegistry
impl Sync for DebugRegistry
impl Unpin for DebugRegistry
impl UnsafeUnpin for DebugRegistry
impl UnwindSafe for DebugRegistry
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more