[][src]Struct nakadion::publisher::Publisher

pub struct Publisher<C> { /* fields omitted */ }

Publishes events with retries

PublishApi

The publisher implements PublishApi. If the trait method is used for publishing no retries are done on partial successes. Retries are only done on io errors and server errors or on auth errors if retry_on_auth_errors is set to true.

Implementations

impl<C> Publisher<C> where
    C: PublishApi + Send + Sync + 'static, 
[src]

pub fn new(api_client: C) -> Self[src]

pub fn with_config(api_client: C, config: PublisherConfig) -> Self[src]

pub fn set_logger<L: Logger>(&mut self, logger: L)[src]

pub fn logger<L: Logger>(self, logger: L) -> Self[src]

pub fn instrumentation(self, instr: Instrumentation) -> Self[src]

pub fn set_instrumentation(&mut self, instr: Instrumentation)[src]

Trait Implementations

impl<C: Clone> Clone for Publisher<C>[src]

impl<C> PublishApi for Publisher<C> where
    C: PublishApi + Send + Sync + 'static, 
[src]

impl<C> PublishesSerializedEvents for Publisher<C> where
    C: PublishApi + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for Publisher<C>

impl<C> Send for Publisher<C> where
    C: Send + Sync

impl<C> Sync for Publisher<C> where
    C: Send + Sync

impl<C> Unpin for Publisher<C>

impl<C> !UnwindSafe for Publisher<C>

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

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

impl<T> PublishesEvents for T where
    T: PublishesSerializedEvents + Send + Sync
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,