Enum rocket_cache_response::CacheResponsePro[][src]

pub enum CacheResponsePro<'r, 'o: 'r, R: Responder<'r, 'o>> {
    Public {
        responder: R,
        max_age: u32,
        must_revalidate: bool,
    },
    Private {
        responder: R,
        max_age: u32,
    },
    NoCache(R),
    NoStore(R),
    NoCacheControl(R),
    // some variants omitted
}
Expand description

The responder with a Cache-Control header.

Variants

Public

Fields of Public

responder: Rmax_age: u32must_revalidate: bool
Private

Fields of Private

responder: Rmax_age: u32
NoCache

Tuple Fields of NoCache

0: R
NoStore

Tuple Fields of NoStore

0: R
NoCacheControl

Tuple Fields of NoCacheControl

0: R

Implementations

Use public cache only when this program is built on the release mode.

Use private cache only when this program is built on the release mode.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

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.