Struct rocket_seek_stream::SeekStream[][src]

pub struct SeekStream<'a> { /* fields omitted */ }
Expand description

Serves a readable and seekable stream, The mime type can optionally be inferred by taking a sample of bytes from the beginning of the stream.

The Accept Ranges header will always be set. If a range request is received, it will respond with the requested offset. Multipart range requests are also supported.

Implementations

Serve content from a file path. The mime type will be inferred by taking a sample from The beginning of the stream.

Trait Implementations

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.

Performs the conversion.

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.