insim 4.1.0

LiveForSpeed Insim implementation that focuses on ergonomics and strong typing
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! impl_typical_with_request_id {
    ($thing:ident) => {
        impl crate::WithRequestId for $thing {
            fn with_request_id<R: Into<crate::identifiers::RequestId>>(
                mut self,
                reqi: R,
            ) -> impl Into<crate::Packet> + std::fmt::Debug {
                self.reqi = reqi.into();
                self
            }
        }
    };
}