pub struct OwnedCopyReader<F: ConnectionFactory> { /* private fields */ }Implementations§
Source§impl<F: ConnectionFactory> OwnedCopyReader<F>
impl<F: ConnectionFactory> OwnedCopyReader<F>
pub async fn new( client: PoolableClient<F>, query: &(impl Statement + ?Sized), parameters: &[&dyn ToSql], ) -> Result<Self, ElefantClientError>
pub async fn read(&mut self) -> Result<Option<CopyData<'_>>, ElefantClientError>
pub async fn end(self) -> Result<(), ElefantClientError>
Auto Trait Implementations§
impl<F> Freeze for OwnedCopyReader<F>where
PoolableClient<F>: Freeze,
impl<F> RefUnwindSafe for OwnedCopyReader<F>where
PoolableClient<F>: RefUnwindSafe,
impl<F> Send for OwnedCopyReader<F>where
PoolableClient<F>: Send,
impl<F> Sync for OwnedCopyReader<F>where
PoolableClient<F>: Sync,
impl<F> Unpin for OwnedCopyReader<F>where
PoolableClient<F>: Unpin,
impl<F> UnsafeUnpin for OwnedCopyReader<F>where
PoolableClient<F>: UnsafeUnpin,
impl<F> UnwindSafe for OwnedCopyReader<F>where
PoolableClient<F>: UnwindSafe,
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