pub struct CopyIn<'a, C>{ /* private fields */ }
Implementations§
Source§impl<'a, C> CopyIn<'a, C>
impl<'a, C> CopyIn<'a, C>
pub fn new( client: &'a mut C, stmt: &Statement, ) -> impl Future<Output = Result<Self, Error>> + Send
Sourcepub fn copy(&mut self, item: impl Buf) -> Result<(), Error>
pub fn copy(&mut self, item: impl Buf) -> Result<(), Error>
copy given buffer into Driver
and send it to database in non blocking manner
*. calling this api in rapid succession and/or supply huge buffer may result in high memory consumption. consider rate limiting the progress with small chunk of buffer and/or using smart pointers for throughput counting
Trait Implementations§
Auto Trait Implementations§
impl<'a, C> Freeze for CopyIn<'a, C>
impl<'a, C> RefUnwindSafe for CopyIn<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for CopyIn<'a, C>
impl<'a, C> Sync for CopyIn<'a, C>where
C: Sync,
impl<'a, C> Unpin for CopyIn<'a, C>
impl<'a, C> !UnwindSafe for CopyIn<'a, C>
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