1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#[macro_export]
macro_rules! define_router_state {
($StateT:ty) => {
define_router_state!($StateT, stringify!($StateT));
};
($StateT:ty, $StateName:expr) => {
#[doc = "A set of aliases to commonly used structures and functions used for routing."]
mod router_state {
#[doc = "The state that can be stored by the router service."]
pub type State = $StateT;
#[doc = "Alias to [Route<"]
#[doc = $StateName]
#[doc = ">](route/struct.Route.html)."]
pub type Route = $crate::route::Route<$StateT>;
#[doc = "Alias to [RouteService<"]
#[doc = $StateName]
#[doc = ">](route_service/struct.RouteService.html)."]
pub type RouteService = $crate::service::RouteService<$StateT>;
#[cfg(feature="agent")]
#[doc = "Alias to [RouteAgent<"]
#[doc = $StateName]
#[doc = ">](agent/struct.RouteAgent.html)."]
pub type RouteAgent = $crate::agent::RouteAgent<$StateT>;
#[cfg(feature="agent")]
#[doc = "Alias to [RouteAgentBridge<"]
#[doc = $StateName]
#[doc = ">](agent/bridge/struct.RouteAgentBridge.html)`."]
pub type RouteAgentBridge = $crate::agent::RouteAgentBridge<$StateT>;
#[cfg(feature="agent")]
#[doc = "Alias to [RouteAgentDispatcher<"]
#[doc = $StateName]
#[doc = ">](agent/struct.RouteAgentDispatcher.html)`."]
pub type RouteAgentDispatcher = $crate::agent::RouteAgentDispatcher<$StateT>;
#[allow(deprecated)]
#[deprecated(note = "Has been renamed to RouterAnchor")]
#[cfg(feature="components")]
#[doc = "Alias to [RouterLink<"]
#[doc = $StateName]
#[doc = ">](components/struct.RouterLink.html)`."]
pub type RouterLink = $crate::components::RouterLink<$StateT>;
#[cfg(feature="components")]
#[doc = "Alias to [RouterAnchor<"]
#[doc = $StateName]
#[doc = ">](components/struct.RouterAnchor.html)`."]
pub type RouterAnchor = $crate::components::RouterAnchor<$StateT>;
#[cfg(feature="components")]
#[doc = "Alias to [RouterButton<"]
#[doc = $StateName]
#[doc = ">](components/struct.RouterButton.html)`."]
pub type RouterButton = $crate::components::RouterButton<$StateT>;
#[cfg(feature="router")]
#[doc = "Alias to [Router<"]
#[doc = $StateName]
#[doc = ">](router/router/struct.Router.html)."]
pub type Router<SW> = $crate::router::Router<$StateT, SW>;
}
}
}