Struct sea_orm_rocket::MockPool
source · pub struct MockPool;
Expand description
A mock object which impl Pool
, for testing only
Trait Implementations
sourceimpl Pool for MockPool
impl Pool for MockPool
type Error = MockPoolErr
type Error = MockPoolErr
The error type returned by
Self::init()
.type Connection = bool
type Connection = bool
The connection type managed by this pool.
sourcefn init<'life0, 'async_trait>(
_figment: &'life0 Figment
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
_figment: &'life0 Figment
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
sourcefn borrow(&self) -> &Self::Connection
fn borrow(&self) -> &Self::Connection
Borrows a reference to the pool
Auto Trait Implementations
impl RefUnwindSafe for MockPool
impl Send for MockPool
impl Sync for MockPool
impl Unpin for MockPool
impl UnwindSafe for MockPool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.