Enum nakadion::handler::HandlerAssignment [−][src]
pub enum HandlerAssignment {
Unspecified,
EventType(EventTypeName),
EventTypePartition(EventTypePartition),
}
Expand description
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 BatchHandler
s. But it
is guaranteed that Nakadion
will only pass events to a BatchHandler
as defined by the DispatchStrategy
.
Variants
Everything can be passed to the BatchHandler
.
EventType(EventTypeName)
The BatchHandler
will only receive events
of the given event type but from any partition.
Tuple Fields of EventType
EventTypePartition(EventTypePartition)
The BatchHandler
will only receive events
of the given event type on the given partition.
Tuple Fields of EventTypePartition
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for HandlerAssignment
impl Send for HandlerAssignment
impl Sync for HandlerAssignment
impl Unpin for HandlerAssignment
impl UnwindSafe for HandlerAssignment
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more