Struct stdweb::web::FileReader [] [src]

pub struct FileReader(_);

The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.

(JavaScript docs)

Methods

impl FileReader
[src]

[src]

Returns a newly constructed FileReader.

(JavaScript docs)

[src]

Starts reading the contents of the specified blob. Once finished the result attribute will contain the contents of the file as a text string.

(JavaScript docs)

[src]

Starts reading the contents of the specified blob. Once finished the result attribute will contain the contents of the file as an TypedArray.

(JavaScript docs)

[src]

Aborts the read operation. Upon return, the ready_state will be Done.

(JavaScript docs)

[src]

Returns the current state of the reader.

(JavaScript docs)

[src]

The file's contents. This method will only return a value after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.

(JavaScript docs)

Trait Implementations

impl Clone for FileReader
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FileReader
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FileReader
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for FileReader
[src]

impl From<FileReader> for EventTarget
[src]

[src]

Performs the conversion.

impl TryFrom<EventTarget> for FileReader
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl InstanceOf for FileReader
[src]

[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for FileReader
[src]

[src]

Performs the conversion.

impl ReferenceType for FileReader
[src]

[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<FileReader> for Reference
[src]

[src]

Performs the conversion.

impl TryFrom<FileReader> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for FileReader
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for FileReader
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for FileReader
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for FileReader
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for FileReader
[src]

impl IEventTarget for FileReader
[src]

[src]

Adds given event handler to the list of event listeners for the specified EventTarget on which it's called. Read more

[src]

Dispatches an Event at this EventTarget, invoking the affected event listeners in the appropriate order. Read more

Auto Trait Implementations

impl Send for FileReader

impl Sync for FileReader