Struct rdkafka::producer::future_producer::FutureProducerContext [−][src]
The ProducerContext
used by the FutureProducer
.
This context will use a Future
as its DeliveryOpaque
and will complete
the future when the message is delivered (or failed to).
Trait Implementations
impl<C: ClientContext + 'static> ClientContext for FutureProducerContext<C>
[src]
fn log(&self, level: RDKafkaLogLevel, fac: &str, log_message: &str)
[src]
fn stats(&self, statistics: Statistics)
[src]
fn error(&self, error: KafkaError, reason: &str)
[src]
impl<C: Clone + ClientContext + 'static> Clone for FutureProducerContext<C>
[src]
fn clone(&self) -> FutureProducerContext<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C, R> Producer<FutureProducerContext<C>> for FutureProducer<C, R> where
C: ClientContext + 'static,
R: AsyncRuntime,
[src]
C: ClientContext + 'static,
R: AsyncRuntime,
fn client(&self) -> &Client<FutureProducerContext<C>>
[src]
fn flush<T: Into<Timeout>>(&self, timeout: T)
[src]
fn in_flight_count(&self) -> i32
[src]
fn init_transactions<T: Into<Timeout>>(&self, timeout: T) -> KafkaResult<()>
[src]
fn begin_transaction(&self) -> KafkaResult<()>
[src]
fn send_offsets_to_transaction<T: Into<Timeout>>(
&self,
offsets: &TopicPartitionList,
cgm: &ConsumerGroupMetadata,
timeout: T
) -> KafkaResult<()>
[src]
&self,
offsets: &TopicPartitionList,
cgm: &ConsumerGroupMetadata,
timeout: T
) -> KafkaResult<()>
fn commit_transaction<T: Into<Timeout>>(&self, timeout: T) -> KafkaResult<()>
[src]
fn abort_transaction<T: Into<Timeout>>(&self, timeout: T) -> KafkaResult<()>
[src]
fn context(&self) -> &Arc<C>
[src]
impl<C: ClientContext + 'static> ProducerContext for FutureProducerContext<C>
[src]
type DeliveryOpaque = Box<Sender<OwnedDeliveryResult>>
A DeliveryOpaque
is a user-defined structure that will be passed to
the producer when producing a message, and returned to the delivery
method once the message has been delivered, or failed to. Read more
fn delivery(
&self,
delivery_result: &DeliveryResult<'_>,
tx: Box<Sender<OwnedDeliveryResult>>
)
[src]
&self,
delivery_result: &DeliveryResult<'_>,
tx: Box<Sender<OwnedDeliveryResult>>
)
Auto Trait Implementations
impl<C> RefUnwindSafe for FutureProducerContext<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for FutureProducerContext<C>
impl<C> Sync for FutureProducerContext<C>
impl<C> Unpin for FutureProducerContext<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for FutureProducerContext<C> where
C: UnwindSafe,
C: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,