pub struct RobotsParser { /* private fields */ }Expand description
Parser for robots.txt files
Implementations§
Source§impl RobotsParser
impl RobotsParser
Sourcepub fn with_max_size(max_size: usize) -> Self
pub fn with_max_size(max_size: usize) -> Self
Create a parser with custom max size
Sourcepub fn parse(&self, content: &str, ttl: Duration) -> RobotsPolicy
pub fn parse(&self, content: &str, ttl: Duration) -> RobotsPolicy
Parse robots.txt content into a policy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RobotsParser
impl RefUnwindSafe for RobotsParser
impl Send for RobotsParser
impl Sync for RobotsParser
impl Unpin for RobotsParser
impl UnwindSafe for RobotsParser
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