MCPcopy Create free account
hub / github.com/Rustixir/tokio_sky / handle_message

Method handle_message

examples/pulsar_processor_complex.rs:117–134  ·  view source on GitHub ↗
(&mut self, msg: DeliveryResult)

Source from the content-addressed store, hash-verified

115 async fn terminate(&mut self) {}
116
117 async fn handle_message(&mut self, msg: DeliveryResult) -> ProcResult<()> {
118
119 match msg {
120 Some(send_future) => {
121 match send_future.await {
122 Ok(_) => (),
123 Err(_e) => {
124 // TODO: handle error
125 }
126 }
127 }
128 Err(pulsar_err) => {
129 // TODO: Push to dead letter or requeue
130 }
131 }
132
133 ProcResult::Continue
134 }
135}
136
137

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected