pub trait Handler<T, S>: Clone + Send + Sized + 'static {
type Future: Future<Output = ()> + Send + 'static;
// Required method
fn call(
self,
update: Update,
state: S,
request: Arc<RequestBuilder>
) -> Self::Future;
// Provided method
fn with_state(self, state: S) -> HandlerService<Self, T, S> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Object Safety§
This trait is not object safe.