pub enum DialogOutcome {
Continue,
Unchanged,
Changed,
Ok,
Cancel,
}Expand description
Result type for event-handling.
Variants§
Continue
Continue with event-handling. In the event-loop this waits for the next event.
Unchanged
Break event-handling without repaint. In the event-loop this waits for the next event.
Changed
Break event-handling and repaints/renders the application.
In the event-loop this calls render.
Ok
Ok pressed
Cancel
Cancel pressed
Trait Implementations§
Source§impl ConsumedEvent for DialogOutcome
impl ConsumedEvent for DialogOutcome
Source§impl From<DialogOutcome> for Outcome
impl From<DialogOutcome> for Outcome
Source§fn from(value: DialogOutcome) -> Self
fn from(value: DialogOutcome) -> Self
Converts to this type from the input type.
Source§impl From<Outcome> for DialogOutcome
impl From<Outcome> for DialogOutcome
Source§impl<'a> HandleEvent<Event, Dialog, DialogOutcome> for DialogFrameState
impl<'a> HandleEvent<Event, Dialog, DialogOutcome> for DialogFrameState
Source§impl<'a> HandleEvent<Event, MouseOnly, DialogOutcome> for DialogFrameState
impl<'a> HandleEvent<Event, MouseOnly, DialogOutcome> for DialogFrameState
Auto Trait Implementations§
impl Freeze for DialogOutcome
impl RefUnwindSafe for DialogOutcome
impl Send for DialogOutcome
impl Sync for DialogOutcome
impl Unpin for DialogOutcome
impl UnwindSafe for DialogOutcome
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> 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