Struct saphir::middleware::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Implementations
sourceimpl Builder
impl Builder
sourcepub fn apply<M: 'static + Middleware>(
self,
m: M,
include_path: Vec<&str>,
exclude_path: Option<Vec<&str>>
) -> Self
pub fn apply<M: 'static + Middleware>(
self,
m: M,
include_path: Vec<&str>,
exclude_path: Option<Vec<&str>>
) -> Self
Method to apply a new middleware onto the stack where the include_path
vec are all path affected by the middleware,
and exclude_path
are exclusion amongst the included paths.
sourcepub fn build(self) -> MiddlewareStack
pub fn build(self) -> MiddlewareStack
Build the middleware stack
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more