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