We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb7c4f commit 355a409Copy full SHA for 355a409
examples/full/backend/src/main.rs
@@ -3,14 +3,14 @@ use async_trait::async_trait;
3
4
#[tokio::main]
5
async fn main() {
6
- AppLoad::new(&mut MyBackend).unwrap().run().await.unwrap();
+ AppLoad::new(MyBackend).unwrap().run().await.unwrap();
7
}
8
9
struct MyBackend;
10
11
#[async_trait]
12
impl AppLoadBackend for MyBackend {
13
- async fn handle_message(&mut self, functionality: &BackendReplier, message: Message) {
+ async fn handle_message(&mut self, functionality: &BackendReplier<MyBackend>, message: Message) {
14
match message.msg_type {
15
MSG_SYSTEM_NEW_COORDINATOR => {
16
println!("A frontend has connected")
0 commit comments