pub struct PoolHandle { /* private fields */ }Expand description
带逻辑数据源身份的连接池句柄。
TableQuery 持有它;事务在 *_in_tx 中与它比较数据源,跨源直接拒绝。
Implementations§
Source§impl PoolHandle
impl PoolHandle
Sourcepub fn source(&self) -> &DatasourceId
pub fn source(&self) -> &DatasourceId
返回逻辑数据源名。
Sourcepub fn backend(&self) -> BackendKind
pub fn backend(&self) -> BackendKind
返回物理后端。
Trait Implementations§
Source§impl Clone for PoolHandle
impl Clone for PoolHandle
Auto Trait Implementations§
impl !RefUnwindSafe for PoolHandle
impl !UnwindSafe for PoolHandle
impl Forget for PoolHandle
impl Freeze for PoolHandle
impl Move for PoolHandle
impl Send for PoolHandle
impl Sync for PoolHandle
impl Unpin for PoolHandle
impl UnsafeUnpin for PoolHandle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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