pub enum EventOutcome<T> {
Done(T),
Continue,
Abort(AbortReason),
}Expand description
This describes the final result of the prompt
Variants§
Done(T)
The prompt has successfully completed. The inner field will contain the result.
Continue
This signals that the prompt hasn’t completed and should continue
Abort(AbortReason)
Prompt has been aborted
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EventOutcome<T>where
T: Freeze,
impl<T> !RefUnwindSafe for EventOutcome<T>
impl<T> Send for EventOutcome<T>where
T: Send,
impl<T> Sync for EventOutcome<T>where
T: Sync,
impl<T> Unpin for EventOutcome<T>where
T: Unpin,
impl<T> !UnwindSafe for EventOutcome<T>
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