pub struct DefaultCallbackInvoker<C: ClientCallback> { /* private fields */ }Expand description
Concrete CallbackInvoker for issue #14.
Holds a ClientCallback. On CallbackInvoker::invoke it
synthesizes a CallbackRequest from the RoutingPlan and
delegates to the underlying client. The synthesized request
preserves identifiers, integration mode, frame context, and
payload references verbatim — payload bodies are not inspected.
Implementations§
Source§impl<C: ClientCallback> DefaultCallbackInvoker<C>
impl<C: ClientCallback> DefaultCallbackInvoker<C>
Trait Implementations§
Source§impl<C: ClientCallback> CallbackInvoker for DefaultCallbackInvoker<C>
impl<C: ClientCallback> CallbackInvoker for DefaultCallbackInvoker<C>
Source§type Error = <C as ClientCallback>::Error
type Error = <C as ClientCallback>::Error
Error produced by the callback transport. Kept generic so a
renderer-backed impl, an in-process impl, and a future
network impl can each carry their own diagnostic shape.
Source§fn invoke(
&self,
plan: &RoutingPlan,
payloads: &[PayloadEnvelope],
) -> Result<CallbackResponse, Self::Error>
fn invoke( &self, plan: &RoutingPlan, payloads: &[PayloadEnvelope], ) -> Result<CallbackResponse, Self::Error>
Invoke the client callback for a routed event. Read more
Auto Trait Implementations§
impl<C> Freeze for DefaultCallbackInvoker<C>where
C: Freeze,
impl<C> RefUnwindSafe for DefaultCallbackInvoker<C>where
C: RefUnwindSafe,
impl<C> Send for DefaultCallbackInvoker<C>where
C: Send,
impl<C> Sync for DefaultCallbackInvoker<C>where
C: Sync,
impl<C> Unpin for DefaultCallbackInvoker<C>where
C: Unpin,
impl<C> UnsafeUnpin for DefaultCallbackInvoker<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for DefaultCallbackInvoker<C>where
C: UnwindSafe,
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