[][src]Struct parsec_service::back::dispatcher::Dispatcher

pub struct Dispatcher { /* fields omitted */ }

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]

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

impl Debug for Dispatcher[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,