pub struct Context<'a> { /* private fields */ }Expand description
Trait Implementations§
Source§impl<'a> Context for Context<'a>
impl<'a> Context for Context<'a>
Source§fn filesystem_options(&self) -> &Options
fn filesystem_options(&self) -> &Options
Options to use when checking a link on the filesystem.
Source§fn 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
Source§fn 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.Source§fn concurrency(&self) -> usize
fn concurrency(&self) -> usize
How many items should we check at a time?
Source§fn 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?
Auto Trait Implementations§
impl<'a> !Freeze for Context<'a>
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§
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