Type Alias rdkafka::producer::future_producer::OwnedDeliveryResult

source ·
pub type OwnedDeliveryResult = Result<(i32, i64), (KafkaError, OwnedMessage)>;
Expand description

Represents the result of message production as performed from the FutureProducer.

If message delivery was successful, OwnedDeliveryResult will return the partition and offset of the message. If the message failed to be delivered an error will be returned, together with an owned copy of the original message.

Aliased Type§

enum OwnedDeliveryResult {
    Ok((i32, i64)),
    Err((KafkaError, OwnedMessage)),



Ok((i32, i64))

Contains the success value


Err((KafkaError, OwnedMessage))

Contains the error value