Struct janus_kafka::KafkaPublisher[][src]

pub struct KafkaPublisher { /* fields omitted */ }

Publishes messages to Kafka

Implementations

impl KafkaPublisher[src]

pub fn new(
    config: PublisherConfig
) -> Result<(Self, PublisherAcker), KafkaError>
[src]

Creates a new publisher and acker.

pub fn status(&self) -> Result<KafkaPublisherStatus, KafkaError>[src]

Creates a KafkaPublisher healthcheck.

Trait Implementations

impl Clone for KafkaPublisher[src]

impl Debug for KafkaPublisher[src]

impl Publisher for KafkaPublisher[src]

type Message = PublisherMessage

The type of Message that the publisher will produce when successful.

type Error = KafkaError

The type of Error that the publisher will produce when it fails.

impl<M: MessageExt> Sink<M> for KafkaPublisher[src]

type Error = Self::Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

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> Erased for T[src]

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

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

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.