[][src]Struct rocket_etagged_file_response::EtaggedFileResponse

pub struct EtaggedFileResponse {
    pub data: Option<Box<dyn Read>>,
    pub is_etag_match: bool,
    pub etag: String,
    pub content_type: Option<String>,
    pub content_length: Option<u64>,
}

The response struct used for offering static files with Etag cache.

Fields

Methods

impl EtaggedFileResponse
[src]

Create a EtaggedFileResponse instance from a path of a file.

Create a new EtagMap instance.

Trait Implementations

impl<'a> Responder<'a> for EtaggedFileResponse
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

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

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.