pub struct GLOBAL_DB_REGISTRY { /* private fields */ }Methods from Deref<Target = DatabaseRegistry>§
Sourcepub async fn register_database(&self, db: XDLDatabase) -> usize
pub async fn register_database(&self, db: XDLDatabase) -> usize
Register a new database object and return its ID
Sourcepub async fn get_database(&self, id: usize) -> Option<Arc<RwLock<XDLDatabase>>>
pub async fn get_database(&self, id: usize) -> Option<Arc<RwLock<XDLDatabase>>>
Get a database by ID
Sourcepub async fn unregister_database(&self, id: usize)
pub async fn unregister_database(&self, id: usize)
Remove a database from the registry
Sourcepub async fn register_recordset(&self, recordset: Recordset) -> usize
pub async fn register_recordset(&self, recordset: Recordset) -> usize
Register a recordset and return its ID
Sourcepub async fn get_recordset(&self, id: usize) -> Option<Arc<RwLock<Recordset>>>
pub async fn get_recordset(&self, id: usize) -> Option<Arc<RwLock<Recordset>>>
Get a recordset by ID
Sourcepub async fn unregister_recordset(&self, id: usize)
pub async fn unregister_recordset(&self, id: usize)
Remove a recordset from the registry
Trait Implementations§
Source§impl Deref for GLOBAL_DB_REGISTRY
impl Deref for GLOBAL_DB_REGISTRY
Source§type Target = DatabaseRegistry
type Target = DatabaseRegistry
The resulting type after dereferencing.
Source§fn deref(&self) -> &DatabaseRegistry
fn deref(&self) -> &DatabaseRegistry
Dereferences the value.
impl LazyStatic for GLOBAL_DB_REGISTRY
Auto Trait Implementations§
impl Freeze for GLOBAL_DB_REGISTRY
impl RefUnwindSafe for GLOBAL_DB_REGISTRY
impl Send for GLOBAL_DB_REGISTRY
impl Sync for GLOBAL_DB_REGISTRY
impl Unpin for GLOBAL_DB_REGISTRY
impl UnwindSafe for GLOBAL_DB_REGISTRY
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