pub struct SqlShim { /* private fields */ }Expand description
The shim’s token → resolved backend registry, shared with the HTTP handler.
Implementations§
Source§impl SqlShim
impl SqlShim
Sourcepub async fn register(&self, token: String, backend: Arc<dyn SqlBackend>)
pub async fn register(&self, token: String, backend: Arc<dyn SqlBackend>)
Register a bearer token for an already-resolved, tenant-scoped backend.
Idempotent: re-registering the same token replaces the mapping.
Sourcepub async fn deregister(&self, token: &str)
pub async fn deregister(&self, token: &str)
Drop a token when its workload replica is torn down.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SqlShim
impl !UnwindSafe for SqlShim
impl Freeze for SqlShim
impl Send for SqlShim
impl Sync for SqlShim
impl Unpin for SqlShim
impl UnsafeUnpin for SqlShim
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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