Struct Identity
pub struct Identity { /* private fields */ }
A no-op middleware.
When wrapping a Service, the Identity layer returns the provided
service without modifying it.
Implementations
impl Identity
const fn new() -> IdentityCreate a new
Identityvalue
Trait Implementations
impl Clone for Identity
fn clone(&self) -> Self
impl Debug for Identity
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Identity
fn default() -> Self
impl<S> Layer<S> for Identity
type Service = S;fn layer(&self, inner: S) -> Self::Service