impl Clone and Debug for Either
This commit is contained in:
parent
07baf63048
commit
5ec2979e83
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue