pub struct BatchSender<T> {
pub tx: Sender<BatchCommand<T>>,
}Fields§
§tx: Sender<BatchCommand<T>>Implementations§
Source§impl<T> BatchSender<T>
impl<T> BatchSender<T>
pub async fn add(&self, item: T) -> Result<(), ClickhouseError>
pub async fn flush(&self) -> Result<(), ClickhouseError>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BatchSender<T>
impl<T> RefUnwindSafe for BatchSender<T>
impl<T> Send for BatchSender<T>where
T: Send,
impl<T> Sync for BatchSender<T>where
T: Send,
impl<T> Unpin for BatchSender<T>
impl<T> UnsafeUnpin for BatchSender<T>
impl<T> UnwindSafe for BatchSender<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