Struct mssql_pool::ConnectionManager [−][src]
pub struct ConnectionManager { /* fields omitted */ }
Expand description
The manager for a MSSQL connection pool
Implementations
impl ConnectionManager
[src]
impl ConnectionManager
[src]pub fn new(cfg: &DatabaseConfig<'_>) -> Result<Self, Error>
[src]
Trait Implementations
impl ManageConnection for ConnectionManager
[src]
impl ManageConnection for ConnectionManager
[src]type Connection = Connection
type Connection = Connection
The connection type this manager deals with.
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]Attempts to create a new connection.
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl !UnwindSafe for ConnectionManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,