pub struct DatabaseManager { /* private fields */ }Expand description
The process-local shared-core registry (spec §10.1, S1A-002).
Implementations§
Source§impl DatabaseManager
impl DatabaseManager
Sourcepub fn global() -> &'static DatabaseManager
pub fn global() -> &'static DatabaseManager
The process-global registry (spec §10.1, S1A-002).
Attach to the one shared core for root, initializing it on first use
(spec §10.1, S1A-002).
Concurrent attaches initialize exactly once: the first caller runs the
full open path (recovery, WAL opening, open-generation advancement,
table mounting) while the rest wait, then every caller receives a
handle over the same core. Fails with DatabaseLocked while an
exclusive Database owner holds the root, and vice versa.
Sourcepub fn registered_entries(&self) -> usize
pub fn registered_entries(&self) -> usize
Number of registry entries (all states). Diagnostics and tests.
Auto Trait Implementations§
impl !Freeze for DatabaseManager
impl !RefUnwindSafe for DatabaseManager
impl !UnwindSafe for DatabaseManager
impl Send for DatabaseManager
impl Sync for DatabaseManager
impl Unpin for DatabaseManager
impl UnsafeUnpin for DatabaseManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more