pub trait FileDialogService {
// Required method
fn show(
&self,
request: FileDialogRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<FileDialogSelection>, Error>> + Send>>;
}Required Methods§
Sourcefn show(
&self,
request: FileDialogRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<FileDialogSelection>, Error>> + Send>>
fn show( &self, request: FileDialogRequest, ) -> Pin<Box<dyn Future<Output = Result<Option<FileDialogSelection>, Error>> + Send>>
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".