Struct rfd::FileHandle[][src]

pub struct FileHandle(_);
Expand description

FileHandle is a way of abstracting over a file returned by a dialog

Implementations

On native platforms it wraps path.

On WASM32 it wraps JS File object.

Get name of a file

Gets path to a file.

Does not exist in WASM32

Reads a file asynchronously.

On native platforms it spawns a std::thread in the background.

This fn exists souly to keep native api in pair with async only web api.

Unwraps a FileHandle and returns innet type.

It should be used, if user wants to handle file read themselves

On native platforms returns path.

On WASM32 it returns JS File object.

Behind a file-handle-inner feature flag

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.