Enum sqlx_core::pool::maybe::MaybePoolConnection
source · pub enum MaybePoolConnection<'c, DB: Database> {
Connection(&'c mut DB::Connection),
PoolConnection(PoolConnection<DB>),
}
Variants§
Connection(&'c mut DB::Connection)
PoolConnection(PoolConnection<DB>)
Trait Implementations§
source§impl<'c, DB: Database> Deref for MaybePoolConnection<'c, DB>
impl<'c, DB: Database> Deref for MaybePoolConnection<'c, DB>
source§impl<'c, DB: Database> DerefMut for MaybePoolConnection<'c, DB>
impl<'c, DB: Database> DerefMut for MaybePoolConnection<'c, DB>
source§impl<'c, DB: Database> From<&'c mut <DB as Database>::Connection> for MaybePoolConnection<'c, DB>
impl<'c, DB: Database> From<&'c mut <DB as Database>::Connection> for MaybePoolConnection<'c, DB>
source§fn from(v: &'c mut DB::Connection) -> Self
fn from(v: &'c mut DB::Connection) -> Self
Converts to this type from the input type.
source§impl<'c, DB: Database> From<PoolConnection<DB>> for MaybePoolConnection<'c, DB>
impl<'c, DB: Database> From<PoolConnection<DB>> for MaybePoolConnection<'c, DB>
source§fn from(v: PoolConnection<DB>) -> Self
fn from(v: PoolConnection<DB>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c, DB> Freeze for MaybePoolConnection<'c, DB>
impl<'c, DB> !RefUnwindSafe for MaybePoolConnection<'c, DB>
impl<'c, DB> Send for MaybePoolConnection<'c, DB>
impl<'c, DB> Sync for MaybePoolConnection<'c, DB>
impl<'c, DB> Unpin for MaybePoolConnection<'c, DB>
impl<'c, DB> !UnwindSafe for MaybePoolConnection<'c, DB>
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