lgui-router 0.2.0

Declarative routing for LGUI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::sync::Arc;

use super::RouteChange;

pub(super) type RouteListener<R> = Arc<dyn Fn(&RouteChange<R>) + Send + Sync + 'static>;

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct RouteSubscriptionToken {
    pub(super) router_id: u64,
    pub(super) subscription_id: u64,
}