Trait vapcore_light::request::CheckedRequest[][src]

pub trait CheckedRequest: IncompleteRequest {
    type Extract;
    type Error;
    type Environment;
    fn check_response(
        &self,
        _: &Self::Complete,
        _: &Self::Environment,
        _: &Self::Response
    ) -> Result<Self::Extract, Self::Error>; }

A request which can be checked against its response for more validity.

Associated Types

type Extract[src]

Data extracted during the check.

type Error[src]

Error encountered during the check.

type Environment[src]

Environment passed to response check.

Loading content...

Required methods

fn check_response(
    &self,
    _: &Self::Complete,
    _: &Self::Environment,
    _: &Self::Response
) -> Result<Self::Extract, Self::Error>
[src]

Check whether the response matches (beyond the type).

Loading content...

Implementors

impl CheckedRequest for CheckedRequest[src]

type Extract = Response

type Error = Error

type Environment = Mutex<Cache>

fn check_response(
    &self,
    complete: &Self::Complete,
    cache: &Mutex<Cache>,
    response: &Self::Response
) -> Result<Response, Error>
[src]

Check whether the response matches (beyond the type).

impl CheckedRequest for Request[src]

type Extract = ()

type Error = WrongKind

type Environment = ()

Loading content...