[−][src]Struct parsec_service::back::backend_handler::BackEndHandler
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]
&self,
request: Request,
app_name: Option<ApplicationName>
) -> Response
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
Auto Trait Implementations
impl !RefUnwindSafe for BackEndHandler
impl Send for BackEndHandler
impl Sync for BackEndHandler
impl Unpin for BackEndHandler
impl !UnwindSafe for BackEndHandler
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>,