Trait Middleware

Source
pub trait Middleware {
    type Inner: ?Sized;

    // Required method
    fn inner(&self) -> &Self::Inner;
}
Expand description

Base trait for middlewares that wrap an inner object.

Required Associated Types§

Required Methods§

Source

fn inner(&self) -> &Self::Inner

Implementations on Foreign Types§

Source§

impl<T: ?Sized> Middleware for &T

Source§

type Inner = T

Source§

fn inner(&self) -> &T

Source§

impl<T: ?Sized> Middleware for Box<T>

Source§

type Inner = T

Source§

fn inner(&self) -> &T

Source§

impl<T: ?Sized> Middleware for Rc<T>

Source§

type Inner = T

Source§

fn inner(&self) -> &T

Implementors§