pub struct IpMatcher<T> { /* private fields */ }Implementations§
Source§impl<T> IpMatcher<T>
impl<T> IpMatcher<T>
pub fn new(config: Arc<RouterConfig>) -> Self
pub fn insert(&mut self, route: Arc<Route<T>>)
pub fn remove(&mut self, id: &str) -> Option<Arc<Route<T>>>
pub fn batch_remove(&mut self, ids: &HashSet<String>) -> bool
pub fn match_request(&self, request: &Request) -> Vec<Arc<Route<T>>>
pub fn trace(&self, request: &Request) -> Vec<Trace<T>>
pub fn cache(&mut self, limit: u64, level: u64) -> u64
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for IpMatcher<T>
impl<T> RefUnwindSafe for IpMatcher<T>where
T: RefUnwindSafe,
impl<T> Send for IpMatcher<T>
impl<T> Sync for IpMatcher<T>
impl<T> Unpin for IpMatcher<T>
impl<T> UnsafeUnpin for IpMatcher<T>
impl<T> UnwindSafe for IpMatcher<T>where
T: RefUnwindSafe,
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