Struct ffsend_api::reader::ProgressReader [] [src]

pub struct ProgressReader<R> { /* fields omitted */ }

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

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

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

Methods

impl<R: Read> ProgressReader<R>
[src]

[src]

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

[src]

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

[src]

Set the reporter to report the status to.

[src]

Get the current progress.

Trait Implementations

impl<R: Read> Read for ProgressReader<R>
[src]

[src]

Read from the encrypted file, and then the encryption tag.

[src]

🔬 This is a nightly-only experimental API. (read_initializer)

Determines if this Reader can work with buffers of uninitialized memory. Read more

1.0.0
[src]

Read all bytes until EOF in this source, placing them into buf. Read more

1.0.0
[src]

Read all bytes until EOF in this source, appending them to buf. Read more

1.6.0
[src]

Read the exact number of bytes required to fill buf. Read more

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

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

Important traits for Bytes<R>
1.0.0
[src]

Transforms this Read instance to an [Iterator] over its bytes. Read more

Important traits for Chars<R>
[src]

🔬 This is a nightly-only experimental API. (io)

the semantics of a partial read/write of where errors happen is currently unclear and may change

Transforms this Read instance to an [Iterator] over [char]s. Read more

Important traits for Chain<T, U>
1.0.0
[src]

Creates an adaptor which will chain this stream with another. Read more

Important traits for Take<T>
1.0.0
[src]

Creates an adaptor which will read at most limit bytes from it. Read more

impl<R: Read> ExactLengthReader for ProgressReader<R>
[src]

[src]

Get the exact length of the reader in bytes.

[src]

Check whehter this extact length reader is emtpy.

Auto Trait Implementations

impl<R> Send for ProgressReader<R> where
    R: Send

impl<R> Sync for ProgressReader<R> where
    R: Sync