Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Type parameter of server::Error can make its usage cumbersome #50

@mzabaluev

Description

@mzabaluev

server::Error is generic with a MakeService type parameter, providing associated error types for content of variants Service and NewService. If the service factory type used by the application is itself generic and imposes trait bounds on its parameters, code using server::Error has to carry all that baggage over, even though the actual service error types may not require it at all. The generic parameters of the service type also percolate into error types that contain server::Error, making their Debug impls problematic to derive due to the likely phantom data type parameters.

Can this error type be decoupled from the signature of a MakeService type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions