summaryrefslogtreecommitdiffstats
path: root/src/router/types.rs
blob: 0b5e16231b2e394f4344c3edfb2a91f2a9036a97 (plain) (blame)
1
2
3
4
5
6
7
pub trait Opaque: Send + Sync + 'static {}

impl<T> Opaque for T where T: Send + Sync + 'static {}

pub trait Callback<T>: Fn(&T, bool) -> () + Sync + Send + 'static {}

impl<T, F> Callback<T> for F where F: Fn(&T, bool) -> () + Sync + Send + 'static {}