[][src]Enum nfd2::Response

pub enum Response {
    Okay(PathBuf),
    OkayMultiple(Vec<PathBuf>),
    Cancel,
}

Result of opening a file dialog. Note that the underlying C library only ever returns paths encoded as utf-8 strings, if a path cannot be converted to a valid utf-8 string, then an error is returned instead.

Variants

Okay(PathBuf)

The user pressed okay, and a single path was selected

OkayMultiple(Vec<PathBuf>)

The user pressed okay, and 1 or more paths were selected

Cancel

User pressed cancel

Trait Implementations

impl Clone for Response[src]

impl PartialEq<Response> for Response[src]

impl StructuralPartialEq for Response[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.