pub enum FileOutcome {
Continue,
Unchanged,
Changed,
Cancel,
Ok(PathBuf),
}Expand description
Result for the FileDialog.
Variants§
Continue
The given event has not been used at all.
Unchanged
The event has been recognized, but the result was nil. Further processing for this event may stop.
Changed
The event has been recognized and there is some change due to it. Further processing for this event may stop. Rendering the ui is advised.
Cancel
Cancel
Ok(PathBuf)
Ok
Trait Implementations§
Source§impl Clone for FileOutcome
impl Clone for FileOutcome
Source§fn clone(&self) -> FileOutcome
fn clone(&self) -> FileOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConsumedEvent for FileOutcome
impl ConsumedEvent for FileOutcome
Source§fn is_consumed(&self) -> bool
fn is_consumed(&self) -> bool
Is this the ‘consumed’ result.
Source§fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
Or-Else chaining with
is_consumed() as the split.Source§fn and_then<F>(self, f: F) -> Self
fn and_then<F>(self, f: F) -> Self
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§impl Debug for FileOutcome
impl Debug for FileOutcome
Source§impl From<FileOutcome> for Outcome
impl From<FileOutcome> for Outcome
Source§fn from(value: FileOutcome) -> Self
fn from(value: FileOutcome) -> Self
Converts to this type from the input type.
Source§impl From<Outcome> for FileOutcome
impl From<Outcome> for FileOutcome
Source§impl From<bool> for FileOutcome
impl From<bool> for FileOutcome
Source§impl Ord for FileOutcome
impl Ord for FileOutcome
Source§fn cmp(&self, other: &FileOutcome) -> Ordering
fn cmp(&self, other: &FileOutcome) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FileOutcome
impl PartialEq for FileOutcome
Source§impl PartialOrd for FileOutcome
impl PartialOrd for FileOutcome
impl Eq for FileOutcome
impl StructuralPartialEq for FileOutcome
Auto Trait Implementations§
impl Freeze for FileOutcome
impl RefUnwindSafe for FileOutcome
impl Send for FileOutcome
impl Sync for FileOutcome
impl Unpin for FileOutcome
impl UnwindSafe for FileOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more