[−][src]Struct parsec_service::back::dispatcher::Dispatcher
Component tasked with identifying the backend handler that can service a request.
As such, it owns all the backend handlers and attempts to match the fields in the request header to the properties of the handlers.
Methods
impl Dispatcher
[src]
pub fn dispatch_request(
&self,
request: Request,
app_name: Option<ApplicationName>
) -> Response
[src]
&self,
request: Request,
app_name: Option<ApplicationName>
) -> Response
Parses the provider
field of the request header and attempts to find
the backend handler to which the request must be dispatched.
Returns either the response coming from the backend handler, or a response containing a status code consistent with the error encountered during processing.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Dispatcher
impl Send for Dispatcher
impl Sync for Dispatcher
impl Unpin for Dispatcher
impl !UnwindSafe for Dispatcher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Free for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,