pub struct RuntimeStorageNamespaceRegistry { /* private fields */ }Expand description
Tracks runtime storage namespaces and their table ownership.
Implementations§
Source§impl RuntimeStorageNamespaceRegistry
impl RuntimeStorageNamespaceRegistry
pub fn new(persistent_id: RuntimeNamespaceId) -> Self
pub fn persistent_id(&self) -> &str
pub fn register_namespace<N, I>( &mut self, namespace: Arc<N>, schemas: I, prefer_unqualified: bool, )
pub fn register_schema( &mut self, schema: impl Into<String>, namespace: RuntimeNamespaceId, )
pub fn set_unqualified_priority(&mut self, order: Vec<RuntimeNamespaceId>)
pub fn register_table( &mut self, namespace: &RuntimeNamespaceId, canonical: String, )
pub fn unregister_table( &mut self, canonical: &str, ) -> Option<RuntimeNamespaceId>
pub fn drain_namespace_tables( &mut self, namespace: &RuntimeNamespaceId, ) -> Vec<String>
pub fn namespace_for_schema(&self, schema: &str) -> Option<&RuntimeNamespaceId>
pub fn namespace_ops( &self, id: &str, ) -> Option<Arc<dyn RuntimeStorageNamespaceOps>>
pub fn namespace<N>(&self, id: &str) -> Option<Arc<N>>where
N: RuntimeStorageNamespace + 'static,
pub fn unqualified_order( &self, ) -> Box<dyn Iterator<Item = &RuntimeNamespaceId> + '_>
pub fn is_temporary_table(&self, canonical: &str) -> bool
pub fn namespace_for_table(&self, canonical: &str) -> RuntimeNamespaceId
Auto Trait Implementations§
impl Freeze for RuntimeStorageNamespaceRegistry
impl !RefUnwindSafe for RuntimeStorageNamespaceRegistry
impl Send for RuntimeStorageNamespaceRegistry
impl Sync for RuntimeStorageNamespaceRegistry
impl Unpin for RuntimeStorageNamespaceRegistry
impl !UnwindSafe for RuntimeStorageNamespaceRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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