1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use crate::traits::Payload; mod endpoint; mod handler; mod message; mod router; /// Payload used for tests #[allow(unused)] #[derive(Debug)] enum TestPayload { Integer(u64), String(&'static str), } impl Payload for TestPayload {} /* impl<'b> From<&'b Message> for &'b TestPayload { fn from(value: &'b Message) -> Self { value.inner::<TestPayload>().unwrap() } } */