[−][src]Function yukikaze::extractor::file
pub async fn file<S>(
file: File,
body: S,
encoding: ContentEncoding
) -> Result<File, BodyReadError> where
S: StreamExt<Item = Result<Chunk, Error>> + Unpin,
Extracts body as bytes from Stream
and write it to file
Params:
file
- Into which to write
body
- Stream of data chunks to read. If limit is hit, body is not exhausted completely.
encoding
- Specifies encoding to use.