impl Clone and Debug for Either

This commit is contained in:
Sean McArthur 2019-04-18 12:08:22 -07:00
parent 07baf63048
commit 5ec2979e83
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ use tower_service::Service;
/// Both services must be of the same request, response, and error types.
/// `Either` is useful for handling conditional branching in service middleware
/// to different inner service types.
#[derive(Clone, Debug)]
pub enum Either<A, B> {
A(A),
B(B),