DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: 91b99511153d9e5adb1ffba835cb0706a54676f0 emerwen/emerwen-protocol/src/lib.rs -rw-r--r-- 480 bytes
91b99511Jonni Liljamo feat(master): change to protocol Worker type 9 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) 2024 Jonni Liljamo <jonni@liljamo.com>
 *
 * This file is licensed under GPL-3.0-or-later, see NOTICE and LICENSE for
 * more information.
 */

tonic::include_proto!("mod");

use emerwen::shared::target::{Method, MethodGet, MethodPing};

impl From<MethodPing> for Method {
    fn from(value: MethodPing) -> Self {
        Method::Ping(value)
    }
}

impl From<MethodGet> for Method {
    fn from(value: MethodGet) -> Self {
        Method::Get(value)
    }
}