pub struct WriteRequest<'a, W: WriteInput> { /* private fields */ }Expand description
Builder produced by Client::write; chain options, then .await.
Implementations§
Source§impl<'a, W: WriteInput> WriteRequest<'a, W>
impl<'a, W: WriteInput> WriteRequest<'a, W>
pub fn precision(self, p: Precision) -> Self
pub fn no_sync(self) -> Self
pub fn accept_partial(self, accept: bool) -> Self
pub fn use_v2_api(self) -> Self
pub fn batch_size(self, n: usize) -> Self
pub fn max_inflight(self, n: usize) -> Self
pub fn default_tag( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Sourcepub fn gzip_threshold(self, t: Option<usize>) -> Self
pub fn gzip_threshold(self, t: Option<usize>) -> Self
Compress bodies larger than t bytes; None disables compression.
Disable or raise this for high-throughput ingest over a fast LAN where
gzip CPU outweighs the bandwidth saved. See WriteOptions::gzip_threshold.
pub fn tag_order( self, order: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sourcepub fn with_options(self, opts: WriteOptions) -> Self
pub fn with_options(self, opts: WriteOptions) -> Self
Replace the underlying options wholesale.
Sourcepub fn retry(self, policy: RetryConfig) -> Self
pub fn retry(self, policy: RetryConfig) -> Self
Override the retry policy for this write (defaults to the client’s).
Trait Implementations§
Source§impl<'a, W: WriteInput + Send + 'a> IntoFuture for WriteRequest<'a, W>
impl<'a, W: WriteInput + Send + 'a> IntoFuture for WriteRequest<'a, W>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <WriteRequest<'a, W> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <WriteRequest<'a, W> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, W> !RefUnwindSafe for WriteRequest<'a, W>
impl<'a, W> !UnwindSafe for WriteRequest<'a, W>
impl<'a, W> Freeze for WriteRequest<'a, W>where
W: Freeze,
impl<'a, W> Send for WriteRequest<'a, W>where
W: Send,
impl<'a, W> Sync for WriteRequest<'a, W>where
W: Sync,
impl<'a, W> Unpin for WriteRequest<'a, W>where
W: Unpin,
impl<'a, W> UnsafeUnpin for WriteRequest<'a, W>where
W: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request