Struct linkcheck::validation::BasicContext [−][src]
A basic Context
implementation which uses all the defaults.
Fields
options: Options
Options used when validating filesystem links.
Implementations
impl BasicContext
[src]
pub const USER_AGENT: &'static str
[src]
The User-Agent used by the BasicContext::client()
.
pub fn with_client(client: Client) -> Self
[src]
Create a BasicContext
with an already initialized Client
.
pub fn options_mut(&mut self) -> &mut Options
[src]
👎 Deprecated:
Access the field directly instead
Get a mutable reference to the Options
used when validating
filesystem links.
Trait Implementations
impl Context for BasicContext
[src]
fn client(&self) -> &Client
[src]
fn filesystem_options(&self) -> &Options
[src]
fn cache(&self) -> Option<MutexGuard<'_, Cache>>
[src]
fn url_specific_headers(&self, _url: &Url) -> HeaderMap
[src]
fn concurrency(&self) -> usize
[src]
fn cache_timeout(&self) -> Duration
[src]
fn should_ignore(&self, _link: &Link) -> bool
[src]
impl Debug for BasicContext
[src]
impl Default for BasicContext
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BasicContext
impl !Send for BasicContext
impl !Sync for BasicContext
impl Unpin for BasicContext
impl !UnwindSafe for BasicContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,