Struct trillium_caching_headers::CacheControlHeader[][src]

pub struct CacheControlHeader(_);
Expand description

A representation of the Cache-Control header.

Implementations

returns true if one of the directives is immutable

returns a duration if one of the directives is max-age

returns a duration if one of the directives is max-fresh

returns Some(None) if one of the directives is max-stale but no value is provided. returns Some(Some(duration)) if one of the directives is max-stale and includes a duration in seconds, such as max-stale=3600. Returns None if there is no max-stale directive

returns true if this header contains a must-revalidate directive

returns true if this header contains a no-cache directive

returns true if this header contains a no-store directive

returns true if this header contains a no-transform directive

returns true if this header contains an only-if-cached directive

returns true if this header contains a private directive

returns true if this header contains a proxy-revalidate directive

returns true if this header contains a proxy directive

returns a duration if this header contains an s-maxage directive

returns a duration if this header contains a stale-if-error directive

returns a duration if this header contains a stale-while-revalidate directive

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Creates a value from an iterator. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.