Struct akka_projection_rs_grpc::producer::GrpcEventFlow
source · pub struct GrpcEventFlow<E> { /* private fields */ }
Expand description
Transform and forward gRPC events given a user-supplied transformation function.
Implementations§
source§impl<E> GrpcEventFlow<E>
impl<E> GrpcEventFlow<E>
sourcepub fn handler<EI, PF, T>(
self,
producer_filter: PF,
transformer: T
) -> GrpcEventProcessor<E, EI, PF, T>where
PF: Fn(&EI) -> bool,
T: Fn(&EI) -> Option<E>,
pub fn handler<EI, PF, T>( self, producer_filter: PF, transformer: T ) -> GrpcEventProcessor<E, EI, PF, T>where PF: Fn(&EI) -> bool, T: Fn(&EI) -> Option<E>,
Produces a handler for this flow. The handler will receive events, apply filters and, if the filters match, transform and forward events on to a gRPC producer.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for GrpcEventFlow<E>
impl<E> Send for GrpcEventFlow<E>where E: Send,
impl<E> Sync for GrpcEventFlow<E>where E: Send,
impl<E> Unpin for GrpcEventFlow<E>
impl<E> !UnwindSafe for GrpcEventFlow<E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request