pub struct SessionPager<'a, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, S: CDRSSession<'static, T, M> + 'a, T: CDRSTransport + 'static> { /* private fields */ }Implementations§
Source§impl<'a, 'b: 'a, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, S: CDRSSession<'static, T, M>, T: CDRSTransport + 'static> SessionPager<'a, M, S, T>
impl<'a, 'b: 'a, M: ManageConnection<Connection = RefCell<T>, Error = Error> + Sized, S: CDRSSession<'static, T, M>, T: CDRSTransport + 'static> SessionPager<'a, M, S, T>
pub fn new(session: &'b S, page_size: i32) -> SessionPager<'a, M, S, T>
pub fn query_with_pager_state<Q>(
&'a mut self,
query: Q,
state: PagerState,
) -> QueryPager<'a, Q, SessionPager<'a, M, S, T>>where
Q: ToString,
pub fn query<Q>(
&'a mut self,
query: Q,
) -> QueryPager<'a, Q, SessionPager<'a, M, S, T>>where
Q: ToString,
pub fn exec_with_pager_state( &'a mut self, query: &'a PreparedQuery, state: PagerState, ) -> ExecPager<'a, SessionPager<'a, M, S, T>>
pub fn exec( &'a mut self, query: &'a PreparedQuery, ) -> ExecPager<'a, SessionPager<'a, M, S, T>>
Auto Trait Implementations§
impl<'a, M, S, T> Freeze for SessionPager<'a, M, S, T>
impl<'a, M, S, T> RefUnwindSafe for SessionPager<'a, M, S, T>
impl<'a, M, S, T> Send for SessionPager<'a, M, S, T>where
S: Sync,
impl<'a, M, S, T> Sync for SessionPager<'a, M, S, T>where
S: Sync,
impl<'a, M, S, T> Unpin for SessionPager<'a, M, S, T>
impl<'a, M, S, T> UnwindSafe for SessionPager<'a, M, S, T>
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