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
Trait Implementations
Returns Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SeekStream<'a>
impl<'a> !Send for SeekStream<'a>
impl<'a> !Sync for SeekStream<'a>
impl<'a> Unpin for SeekStream<'a>
impl<'a> !UnwindSafe for SeekStream<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
type Output = T
type Output = T
Should always be Self