pub struct NoOpSessionControl;Expand description
No-op implementation of SessionControl.
All methods are no-ops that return Ok(()). Used for in-memory backends
and as the default when no session control is configured.
Trait Implementations§
Source§impl SessionControl for NoOpSessionControl
impl SessionControl for NoOpSessionControl
Source§fn begin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn begin<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Begin a new session-scoped transaction.
Auto Trait Implementations§
impl Freeze for NoOpSessionControl
impl RefUnwindSafe for NoOpSessionControl
impl Send for NoOpSessionControl
impl Sync for NoOpSessionControl
impl Unpin for NoOpSessionControl
impl UnsafeUnpin for NoOpSessionControl
impl UnwindSafe for NoOpSessionControl
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