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

Method handle_message

examples/dynamic_batching.rs:115–125  ·  view source on GitHub ↗
(&mut self, msg: Product)

Source from the content-addressed store, hash-verified

113 async fn terminate(&mut self) {}
114
115 async fn handle_message(&mut self, msg: Product) -> ProcResult<Product> {
116
117 // Parition_key
118 let pk = match msg.ctype {
119 Category::Cars => "cars".to_owned(),
120 Category::Mobiles => "mobiles".to_owned(),
121 Category::Accessories => "accessories".to_owned()
122 };
123
124 ProcResult::Dispatch(msg, Some(pk))
125 }
126}
127
128

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected