[][src]Struct mdbook_linkcheck::Cache

pub struct Cache { /* fields omitted */ }

A cache used to avoid unnecessary web requests.

Methods

impl Cache[src]

pub fn save<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Save the Cache as JSON.

pub fn load<R: Read>(reader: R) -> Result<Cache, Error>[src]

Load a Cache from some JSON.

pub fn reset_counters(&self)[src]

pub fn cache_hits(&self) -> usize[src]

The number of times a lookup was successful.

pub fn cache_misses(&self) -> usize[src]

The number of times a lookup was unsuccessful.

Trait Implementations

impl Default for Cache[src]

impl Debug for Cache[src]

impl Serialize for Cache[src]

impl<'de> Deserialize<'de> for Cache where
    Cache: Default
[src]

Auto Trait Implementations

impl Send for Cache

impl Sync for Cache

impl Unpin for Cache

impl UnwindSafe for Cache

impl RefUnwindSafe for Cache

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,