usestd::fmt;usetower_layer::Layer;/// A no-op middleware.
////// When wrapping a `Service`, the `Identity` layer returns the provided
/// service without modifying it.
#[derive(Default, Clone)]pubstructIdentity{_p:(),
}implIdentity{/// Create a new `Identity` value
pubfnnew()-> Identity{
Identity { _p:()}}}/// Decorates a `Service`, transforming either the request or the response.
impl<S>Layer<S>forIdentity{typeService= S;fnlayer(&self, inner: S)->Self::Service{
inner
}}implfmt::Debug forIdentity{fnfmt(&self, f:&mutfmt::Formatter)->fmt::Result{
f.debug_struct("Identity").finish()}}