[][src]Enum wfd::DialogError

pub enum DialogError {
    UserCancelled,
    UnsupportedFilepath,
    HResultFailed {
        error_method: String,
        hresult: i32,
    },
}

Error returned when showing a dialog fails

Variants

UserCancelled

The user cancelled the dialog

UnsupportedFilepath

The filepath of the selected folder or item is not supported. This occurs when the selected path does not have the SFGAO_FILESYSTEM attribute. Selecting items without a regular filesystem path such as "This Computer" or a file or folder within a WPD device like a phone will cause this error.

HResultFailed

An error occurred when showing the dialog, the HRESULT that caused the error is included. This error most commonly occurs when invalid combinations of parameters are provided

Fields of HResultFailed

error_method: String

The COM method that failed

hresult: i32

The HRESULT error code

Trait Implementations

impl Debug for DialogError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.