Struct mdbook_linkcheck::Context
source · [−]pub struct Context<'a> { /* private fields */ }
Expand description
Trait Implementations
sourceimpl<'a> Context for Context<'a>
impl<'a> Context for Context<'a>
sourcefn filesystem_options(&self) -> &Options
fn filesystem_options(&self) -> &Options
Options to use when checking a link on the filesystem.
sourcefn cache(&self) -> Option<MutexGuard<'_, Cache>>
fn cache(&self) -> Option<MutexGuard<'_, Cache>>
An optional cache that can be used to avoid unnecessary network
requests. Read more
sourcefn should_ignore(&self, link: &Link) -> bool
fn should_ignore(&self, link: &Link) -> bool
Should this
Link
be skipped?sourcefn url_specific_headers(&self, url: &Url) -> HeaderMap
fn url_specific_headers(&self, url: &Url) -> HeaderMap
Get any extra headers that should be sent when checking this
Url
.sourcefn concurrency(&self) -> usize
fn concurrency(&self) -> usize
How many items should we check at a time?
sourcefn cache_timeout(&self) -> Duration
fn cache_timeout(&self) -> Duration
How long should a cached item be considered valid for before we need to
check again? Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !Send for Context<'a>
impl<'a> !Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more