Skip to main content

FileDialogService

Trait FileDialogService 

Source
pub trait FileDialogService {
    // Required method
    fn show(&self, request: FileDialogRequest) -> FileDialogFuture;
}

Required Methods§

Source

fn show(&self, request: FileDialogRequest) -> FileDialogFuture

Prepare and start a dialog operation.

Call this method from the UI callback that initiated the request. The native implementation constructs the rfd operation synchronously (as required by macOS), then returns a Send future that may be polled by a background executor. Web callers must create and begin polling the returned local future during browser user activation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§