pub struct OldProviders {
pub crdt_kinds: HashMap<CrdtKind, Arc<dyn CrdtKindProvider>>,
pub logical_type_names: Vec<SmolStr>,
pub logical_types: HashMap<SmolStr, Arc<dyn LogicalTypeProvider>>,
}Expand description
Pre-swap snapshot of the old plugin’s stateful providers.
The host populates this immediately before evicting the old plugin
from the registry so the dispatcher’s schema-compat checks have
the old providers to compare against. The vectors are keyed by
the same names the registry uses (CrdtKind for CRDTs, extension
name() for logical types).
Fields§
§crdt_kinds: HashMap<CrdtKind, Arc<dyn CrdtKindProvider>>CRDT kind providers the old plugin owned, keyed by kind.
logical_type_names: Vec<SmolStr>Names of logical types the old plugin owned (preserves order).
logical_types: HashMap<SmolStr, Arc<dyn LogicalTypeProvider>>Logical type providers keyed by extension name.
Trait Implementations§
Source§impl Debug for OldProviders
impl Debug for OldProviders
Source§impl Default for OldProviders
impl Default for OldProviders
Source§fn default() -> OldProviders
fn default() -> OldProviders
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OldProviders
impl !UnwindSafe for OldProviders
impl Freeze for OldProviders
impl Send for OldProviders
impl Sync for OldProviders
impl Unpin for OldProviders
impl UnsafeUnpin for OldProviders
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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