[][src]Struct parsec_service::back::backend_handler::BackEndHandler

pub struct BackEndHandler { /* fields omitted */ }

Component responsible for unmarshalling requests, passing the operation to the provider and marshalling the result.

It also provides assessment capabilities, letting the dispatcher know if it can process a request.

Methods

impl BackEndHandler[src]

pub fn is_capable(&self, request: &Request) -> Result<()>[src]

Assess whether the backend handler-provider pair is capable of handling the request.

Errors

  • if the provider ID does not match, returns ResponseStatus::WrongProviderID
  • if the content type does not match, returns ResponseStatus::ContentTypeNotSupported
  • if the accept type does not match, returns ResponseStatus::AcceptTypeNotSupported
  • if the version is not supported, returns ResponseStatus::VersionTooBig

pub fn execute_request(
    &self,
    request: Request,
    app_name: Option<ApplicationName>
) -> Response
[src]

Unmarshall the request body, pass the operation to the provider and marshall the result back.

If any of the steps fails, a response containing an appropriate status code is returned.

Trait Implementations

impl Debug for BackEndHandler[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>,