[][src]Enum nakadion::handler::HandlerAssignment

pub enum HandlerAssignment {
    Unspecified,
    EventType(EventTypeName),
    EventTypePartition(EventTypePartition),
}

Defines what a BatchHandler will receive.

This value should the same for the whole lifetime of the BatchHandler. "Should" because in the end it is the BatchHandlerFactory which returns BatchHandlers. But it is guaranteed that Nakadion will only pass events to a BatchHandler as defined by the DispatchStrategy.

Variants

Unspecified

Everything can be passed to the BatchHandler.

EventType(EventTypeName)

The BatchHandler will only receive events of the given event type but from any partition.

EventTypePartition(EventTypePartition)

The BatchHandler will only receive events of the given event type on the given partition.

Implementations

impl HandlerAssignment[src]

Trait Implementations

impl Clone for HandlerAssignment[src]

impl Debug for HandlerAssignment[src]

impl Display for HandlerAssignment[src]

impl Eq for HandlerAssignment[src]

impl PartialEq<HandlerAssignment> for HandlerAssignment[src]

impl StructuralEq for HandlerAssignment[src]

impl StructuralPartialEq for HandlerAssignment[src]

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,