[][src]Struct kf_protocol::message::produce::KfProduceRequest

pub struct KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug
{ pub transactional_id: Option<String>, pub acks: i16, pub timeout_ms: i32, 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.

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]

pub fn find_partition_request(
    &self,
    topic: &str,
    partition: i32
) -> Option<&PartitionProduceData<R>>
[src]

Find partition in request

Trait Implementations

impl<R> Debug for KfProduceRequest<R> where
    R: Debug + Encoder + Decoder + Default
[src]

impl<R> Decoder for KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug
[src]

impl<R> Default for KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug
[src]

impl<'de, R> Deserialize<'de> for KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug + Deserialize<'de>, 
[src]

impl<R> Encoder for KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug
[src]

impl FileWrite for KfProduceRequest<KfFileRecordSet>[src]

impl<R> Request for KfProduceRequest<R> where
    R: Debug + Decoder + Encoder
[src]

impl<R> Serialize for KfProduceRequest<R> where
    R: Encoder + Decoder + Default + Debug + Serialize
[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for KfProduceRequest<R> where
    R: RefUnwindSafe

impl<R> Send for KfProduceRequest<R> where
    R: Send

impl<R> Sync for KfProduceRequest<R> where
    R: Sync

impl<R> Unpin for KfProduceRequest<R> where
    R: Unpin

impl<R> UnwindSafe for KfProduceRequest<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.