pub enum CacheResponse<R: Responder<'static>> {
    Public {
        responder: R,
        max_age: u32,
        must_revalidate: bool,
    },
    Private {
        responder: R,
        max_age: u32,
    },
    NoCache(R),
    NoStore(R),
    NoCacheControl(R),
}
Expand description

The responder with a Cache-Control header.

Variants

Public

Fields

responder: R
max_age: u32
must_revalidate: bool

Private

Fields

responder: R
max_age: u32

NoCache(R)

NoStore(R)

NoCacheControl(R)

Trait Implementations

Formats the value using the given formatter. Read more
Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts self into a collection.
Should always be Self
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.
Get the TypeId of this object.