Struct ffsend_api::reader::ProgressWriter [] [src]

pub struct ProgressWriter<W> { /* fields omitted */ }

A writer wrapper, that measures the reading process for a writer with a known length.

If the writer exceeds the initially specified length, the writer will continue to allow reads. The length property will grow accordingly.

The writer will only start producing None if the wrapped writer is doing so.

Methods

impl<W: Write> ProgressWriter<W>
[src]

[src]

Wrap the given writer with an exact length, in a progress writer.

[src]

Wrap the given writer with the given length in a progress writer.

[src]

Set the reporter to report the status to.

[src]

Get the current progress.

[src]

Unwrap the inner from the progress writer.

Trait Implementations

impl<W: Write> Write for ProgressWriter<W>
[src]

[src]

Write a buffer into this object, returning how many bytes were written. Read more

[src]

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0
[src]

Attempts to write an entire buffer into this write. Read more

1.0.0
[src]

Writes a formatted string into this writer, returning any error encountered. Read more

Important traits for &'a mut W
1.0.0
[src]

Creates a "by reference" adaptor for this instance of Write. Read more

impl<W: Write> ExactLengthReader for ProgressWriter<W>
[src]

[src]

Get the exact length of the reader in bytes.

[src]

Check whehter this extact length reader is emtpy.

Auto Trait Implementations

impl<W> Send for ProgressWriter<W> where
    W: Send

impl<W> Sync for ProgressWriter<W> where
    W: Sync