use std::any::Any; /// A type which can be passed into a stateful handler. /// /// # Trait Bounds /// This trait is bound on `Send + Sync`, as well as `Clone`. Handler states are /// cloned many times, and should be inexpensive to clone. /// /// # Blanket Impl /// This trait is blanket-impl'd on any type that meets the requirements. You do not need /// to manually mark your state types with it. pub trait HandlerState: Any + Send + Sync + Clone + 'static {} impl HandlerState for T where T: Send + Sync + Clone + 'static {}