[−][src]Struct kf_protocol_message::produce::KfProduceRequest
Fields
transactional_id: Option<String>
The transactional ID, or null if the producer is not transactional.
acks: i16
The number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
timeout_ms: i32
The timeout to await a response in miliseconds.
topics: Vec<TopicProduceData<R>>
Each topic to produce to.
data: PhantomData<R>
Implementations
impl<R> KfProduceRequest<R> where
R: Encoder + Decoder + Debug,
[src]
R: Encoder + Decoder + Debug,
pub fn find_partition_request(
&self,
topic: &str,
partition: i32
) -> Option<&PartitionProduceData<R>>
[src]
&self,
topic: &str,
partition: i32
) -> Option<&PartitionProduceData<R>>
Find partition in request
Trait Implementations
impl<R: Debug> Debug for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
[src]
R: Encoder + Decoder + Default + Debug,
impl<R> Decoder for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
[src]
R: Encoder + Decoder + Default + Debug,
fn decode<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error> where
T: Buf,
[src]
T: Buf,
fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
Self: Default,
T: Buf,
[src]
Self: Default,
T: Buf,
impl<R> Default for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
[src]
R: Encoder + Decoder + Default + Debug,
impl<'de, R> Deserialize<'de> for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
R: Deserialize<'de>,
[src]
R: Encoder + Decoder + Default + Debug,
R: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<R> Encoder for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
[src]
R: Encoder + Decoder + Default + Debug,
fn encode<T>(&self, src: &mut T, version: Version) -> Result<(), Error> where
T: BufMut,
[src]
T: BufMut,
fn write_size(&self, version: Version) -> usize
[src]
fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
[src]
impl<R> Request for KfProduceRequest<R> where
R: Debug + Decoder + Encoder,
[src]
R: Debug + Decoder + Encoder,
const API_KEY: u16
[src]
const MIN_API_VERSION: i16
[src]
const MAX_API_VERSION: i16
[src]
const DEFAULT_API_VERSION: i16
[src]
type Response = KfProduceResponse
impl<R> Serialize for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug,
R: Serialize,
[src]
R: Encoder + Decoder + Default + Debug,
R: Serialize,
Auto Trait Implementations
impl<R> RefUnwindSafe for KfProduceRequest<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for KfProduceRequest<R> where
R: Send,
R: Send,
impl<R> Sync for KfProduceRequest<R> where
R: Sync,
R: Sync,
impl<R> Unpin for KfProduceRequest<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for KfProduceRequest<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,