Struct salvo_core::routing::filters::PathFilter
source · pub struct PathFilter { /* private fields */ }
Expand description
Filter request by it’s path information.
Implementations§
source§impl PathFilter
impl PathFilter
sourcepub fn register_wisp_builder<B>(name: impl Into<String>, builder: B)where
B: WispBuilder + 'static,
pub fn register_wisp_builder<B>(name: impl Into<String>, builder: B)where
B: WispBuilder + 'static,
Register new path wisp builder.
sourcepub fn register_wisp_regex(name: impl Into<String>, regex: Regex)
pub fn register_wisp_regex(name: impl Into<String>, regex: Regex)
Register new path part regex.
Trait Implementations§
source§impl Debug for PathFilter
impl Debug for PathFilter
source§impl Filter for PathFilter
impl Filter for PathFilter
source§fn filter(&self, _req: &mut Request, state: &mut PathState) -> bool
fn filter(&self, _req: &mut Request, state: &mut PathState) -> bool
Filter
Request
and returns false or true.Auto Trait Implementations§
impl Freeze for PathFilter
impl !RefUnwindSafe for PathFilter
impl Send for PathFilter
impl Sync for PathFilter
impl Unpin for PathFilter
impl !UnwindSafe for PathFilter
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more