DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: a10abbc6c142abb0bda216e49669ac8baa29df99 emerwen/emerwen-protocol/src/lib.rs -rw-r--r-- 303 bytes
a10abbc6Jonni Liljamo fix(master): get_targets error handling 12 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use target::{Method, MethodGet, MethodPing};

tonic::include_proto!("emerwen");

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)
    }
}