[−][src]Struct nakadion::publisher::Publisher
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]
C: PublishApi + Send + Sync + 'static,
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]
C: PublishApi + Send + Sync + 'static,
fn publish_events_batch<'a, B: Into<Bytes>, T: Into<FlowId>>(
&'a self,
event_type: &'a EventTypeName,
events: B,
flow_id: T
) -> PublishFuture<'a>
[src]
&'a self,
event_type: &'a EventTypeName,
events: B,
flow_id: T
) -> PublishFuture<'a>
impl<C> PublishesSerializedEvents for Publisher<C> where
C: PublishApi + Send + Sync + 'static,
[src]
C: PublishApi + Send + Sync + 'static,
fn publish_serialized_events<'a>(
&'a self,
event_type: &'a EventTypeName,
events: &[Bytes],
flow_id: FlowId
) -> PublishFuture<'a>
[src]
&'a self,
event_type: &'a EventTypeName,
events: &[Bytes],
flow_id: FlowId
) -> PublishFuture<'a>
Auto Trait Implementations
impl<C> !RefUnwindSafe for Publisher<C>
impl<C> Send for Publisher<C> where
C: Send + Sync,
C: Send + Sync,
impl<C> Sync for Publisher<C> where
C: Send + Sync,
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]
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,
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> PublishesEvents for T where
T: PublishesSerializedEvents + Send + Sync,
[src]
T: PublishesSerializedEvents + Send + Sync,
fn publish_events<E, F>(
&'a Self,
&'a EventTypeName,
&'a [E],
F
) -> Pin<Box<dyn Future<Output = Result<(), PublishFailure>> + 'a + Send>> where
E: Sync + Serialize,
F: Into<FlowId>,
[src]
&'a Self,
&'a EventTypeName,
&'a [E],
F
) -> Pin<Box<dyn Future<Output = Result<(), PublishFailure>> + 'a + Send>> where
E: Sync + Serialize,
F: Into<FlowId>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,