Trait actionable::Dispatcher [−][src]
pub trait Dispatcher<T>: Send + Sync {
type Result: Send + Sync;
fn dispatch(&self, permissions: &Permissions, request: T) -> Self::Result;
}
Expand description
Dispatches T
to an appropriate handler. This trait is derivable.
Associated Types
Required methods
fn dispatch(&self, permissions: &Permissions, request: T) -> Self::Result
fn dispatch(&self, permissions: &Permissions, request: T) -> Self::Result
Dispatches request
to the appropriate handler while also ensuring
permissions
allows the request.