[−][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 for KfProduceRequest<R> where
R: Debug + Encoder + Decoder + Default,
[src]
R: Debug + Encoder + Decoder + Default,
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: i16) -> 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,
fn default() -> KfProduceRequest<R>
[src]
impl<'de, R> Deserialize<'de> for KfProduceRequest<R> where
R: Encoder + Decoder + Default + Debug + Deserialize<'de>,
[src]
R: Encoder + Decoder + Default + Debug + Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<KfProduceRequest<R>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<KfProduceRequest<R>, <__D as Deserializer<'de>>::Error> where
__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, dest: &mut T, version: i16) -> Result<(), Error> where
T: BufMut,
[src]
T: BufMut,
fn write_size(&self, version: i16) -> usize
[src]
fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
[src]
impl FileWrite for KfProduceRequest<KfFileRecordSet>
[src]
fn file_encode(
&self,
src: &mut BytesMut,
data: &mut Vec<StoreValue>,
version: i16
) -> Result<(), Error>
[src]
&self,
src: &mut BytesMut,
data: &mut Vec<StoreValue>,
version: i16
) -> Result<(), Error>
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 + Serialize,
[src]
R: Encoder + Decoder + Default + Debug + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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>,