raftify 0.1.82

Experimental High level Raft framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod macro_utils {
    macro_rules! function_name {
        () => {{
            fn f() {}
            fn type_name_of<T>(_: T) -> &'static str {
                std::any::type_name::<T>()
            }
            let name = type_name_of(f);
            &name[..name.len() - 3] // subtract length of "f"
        }};
    }

    pub(crate) use function_name;
}