pub struct ChunkedReadFile<W: FsTaskSpawner, C> {
pub size: u64,
/* private fields */
}Expand description
Stream to read chunks of file
Fields§
§size: u64Size of file to read
Implementations§
Source§impl<W: FsTaskSpawner, C: FileServeConfig> ChunkedReadFile<W, C>
impl<W: FsTaskSpawner, C: FileServeConfig> ChunkedReadFile<W, C>
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Returns true if reading is finished
Trait Implementations§
Source§impl<W: FsTaskSpawner, C: FileServeConfig> From<ChunkedReadFile<W, C>> for Body<W, C>
impl<W: FsTaskSpawner, C: FileServeConfig> From<ChunkedReadFile<W, C>> for Body<W, C>
Source§fn from(chunked: ChunkedReadFile<W, C>) -> Self
fn from(chunked: ChunkedReadFile<W, C>) -> Self
Converts to this type from the input type.
Source§impl<W: FsTaskSpawner, C: FileServeConfig> Future for ChunkedReadFile<W, C>
impl<W: FsTaskSpawner, C: FileServeConfig> Future for ChunkedReadFile<W, C>
Auto Trait Implementations§
impl<W, C> Freeze for ChunkedReadFile<W, C>
impl<W, C> RefUnwindSafe for ChunkedReadFile<W, C>
impl<W, C> Send for ChunkedReadFile<W, C>
impl<W, C> Sync for ChunkedReadFile<W, C>
impl<W, C> Unpin for ChunkedReadFile<W, C>where
C: Unpin,
impl<W, C> UnwindSafe for ChunkedReadFile<W, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more