Trait zebra_test::mock_service::ResponseResult[][src]

pub trait ResponseResult<Response, Error> {
    fn into_result(self) -> Result<Response, Error>;
}
Expand description

A helper trait to improve ergonomics when sending a response.

This allows the ResponseSender::respond method to receive either a Result or just the response type that is wrapped in an Ok variant.

Required methods

Converts the type into a Result that can be sent as a response.

Implementations on Foreign Types

Implementors