pub struct Inserter<T> { /* private fields */ }
Implementations§
Source§impl<T> Inserter<T>where
T: Reflection,
impl<T> Inserter<T>where
T: Reflection,
pub fn new(client: &Client, table: &str) -> Result<Self>
pub fn with_max_entries(self, threshold: u64) -> Self
pub fn with_max_duration(self, threshold: Duration) -> Self
pub fn set_max_entries(&mut self, threshold: u64)
pub fn set_max_duration(&mut self, threshold: Duration)
pub fn write<'a>(
&'a mut self,
row: &T,
) -> impl Future<Output = Result<()>> + 'a + Sendwhere
T: Serialize,
pub async fn commit(&mut self) -> Result<Quantities>
pub async fn end(self) -> Result<Quantities>
Auto Trait Implementations§
impl<T> Freeze for Inserter<T>
impl<T> !RefUnwindSafe for Inserter<T>
impl<T> Send for Inserter<T>
impl<T> Sync for Inserter<T>
impl<T> Unpin for Inserter<T>
impl<T> !UnwindSafe for Inserter<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