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
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

mod hooks {
    mod use_route;
    mod use_router;
    pub use use_route::*;
    pub use use_router::*;
}
pub use hooks::*;

mod components {
    #![allow(non_snake_case)]

    mod link;
    mod redirect;
    mod route;
    mod router;

    pub use link::*;
    pub use redirect::*;
    pub use route::*;
    pub use router::*;
}
pub use components::*;

mod cfg;
mod routecontext;
mod service;

pub use routecontext::*;
pub use service::*;

/// An error specific to the Router
#[derive(Debug)]
pub enum Error {
    /// The route was not found while trying to navigate to it.
    ///
    /// This will force the router to redirect to the 404 page.
    NotFound,
}