channel-protocol 0.3.0

Enable function-based communication instead of enum message sending. All based on channels.
Documentation
1
2
3
4
5
6
7
8
9
10
use convert_case::{Case, Casing};
use quote::format_ident;

use crate::channel_protocol::Protocol;

impl Protocol {
    pub fn message_enum_ident(&self) -> syn::Ident {
        format_ident!("{}Message", self.ident.to_string().to_case(Case::Pascal))
    }
}