pub struct RobotsMatcher { /* private fields */ }Expand description
Matcher for checking if paths are allowed
Implementations§
Source§impl RobotsMatcher
impl RobotsMatcher
Sourcepub fn effective_rules(&self, policy: &RobotsPolicy) -> EffectiveRules
pub fn effective_rules(&self, policy: &RobotsPolicy) -> EffectiveRules
Get effective rules for this user-agent from a policy
Sourcepub fn is_allowed(&self, policy: &RobotsPolicy, path: &str) -> Decision
pub fn is_allowed(&self, policy: &RobotsPolicy, path: &str) -> Decision
Check if a path is allowed by the policy
Auto Trait Implementations§
impl Freeze for RobotsMatcher
impl RefUnwindSafe for RobotsMatcher
impl Send for RobotsMatcher
impl Sync for RobotsMatcher
impl Unpin for RobotsMatcher
impl UnwindSafe for RobotsMatcher
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