Struct glory_routing::filters::FnFilter
source · pub struct FnFilter<F>(pub F);Expand description
FnFilter accepts a function as it’s param, use this function to filter request.
Tuple Fields§
§0: FTrait Implementations§
source§impl<F> Filter for FnFilter<F>
impl<F> Filter for FnFilter<F>
source§fn filter(&self, url: &Url, truck: &Truck, path: &mut PathState) -> bool
fn filter(&self, url: &Url, truck: &Truck, path: &mut PathState) -> bool
Filter
Request and returns false or true.impl<F: Copy> Copy for FnFilter<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for FnFilter<F>where
F: RefUnwindSafe,
impl<F> Send for FnFilter<F>where
F: Send,
impl<F> Sync for FnFilter<F>where
F: Sync,
impl<F> Unpin for FnFilter<F>where
F: Unpin,
impl<F> UnwindSafe for FnFilter<F>where
F: UnwindSafe,
Blanket Implementations§
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