Skip to content

Being able to choose the error type in tower-test #393

Open
@walfie

Description

@walfie

Currently in tower-test, the Mock service's error type is fixed to Box<dyn Error + Send + Sync>.

I guess it's possible to work around it at the moment by creating a wrapper Service that does boxing/downcasting of errors, but are you open to the idea of having the error type be configurable? (it could even be a type param that defaults to Box<dyn Error + Send + Sync> if unspecified)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testArea: The `tower-test` crateC-feature-requestCategory: A feature request, i.e: not implemented / a PR.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions