DEVELOPMENT ENVIRONMENT

~liljamo/emerwen

ref: 35b93a575e79281e0291df876d4f11e3ab585e50 emerwen/emerwen-protocol/src/lib.rs -rw-r--r-- 303 bytes
35b93a57Jonni Liljamo docs: update README.md 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)
    }
}