Struct tk_sendfile::Sendfile [] [src]

pub struct Sendfile<O: FileOpener + Send + 'static> { /* fields omitted */ }

A structure that tracks progress of sending a file

Methods

impl<O: FileOpener> Sendfile<O>
[src]

Returns full size of the file

Note that if file changes while we are reading it, we may not be able to send this number of bytes. In this case we will return WriteZero error however.

Returns a future which resolves to original socket when file has been written into a file

Get inner file opener

Get mutlable reference to inner file opener