Struct fluvio_dataplane_protocol::produce::ProduceRequest
source · [−]pub struct ProduceRequest<R> where
R: Encoder + Decoder + Default + Debug, {
pub transactional_id: Option<String>,
pub isolation: Isolation,
pub timeout: Duration,
pub topics: Vec<TopicProduceData<R>>,
pub data: PhantomData<R>,
}
Fields
transactional_id: Option<String>
The transactional ID, or null if the producer is not transactional.
isolation: Isolation
ReadUncommitted - Just wait for leader to write message (only wait for LEO update). ReadCommitted - Wait for messages to be committed (wait for HW).
timeout: Duration
The timeout to await a response.
topics: Vec<TopicProduceData<R>>
Each topic to produce to.
data: PhantomData<R>
Trait Implementations
sourceimpl<R> Request for ProduceRequest<R> where
R: Debug + Decoder + Encoder,
impl<R> Request for ProduceRequest<R> where
R: Debug + Decoder + Encoder,
const API_KEY: u16 = 0u16
const MIN_API_VERSION: i16 = 0i16
const MAX_API_VERSION: i16 = 7i16
const DEFAULT_API_VERSION: i16 = 7i16
type Response = ProduceResponse
Auto Trait Implementations
impl<R> RefUnwindSafe for ProduceRequest<R> where
R: RefUnwindSafe,
impl<R> Send for ProduceRequest<R> where
R: Send,
impl<R> Sync for ProduceRequest<R> where
R: Sync,
impl<R> Unpin for ProduceRequest<R> where
R: Unpin,
impl<R> UnwindSafe for ProduceRequest<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more