pub enum FormEvent {
Changed,
Cancelled,
Submitted(SubmitOutcome),
ValidationFailed,
}Expand description
Events emitted by crate::Form::handle_input back to the host.
Variants§
Changed
Focus moved, value mutated, or any user-visible state changed.
Cancelled
User pressed Esc outside Insert mode.
Submitted(SubmitOutcome)
Submit fired (validators ran). Outcome is the SubmitFn return
or Err(...) if validation failed.
ValidationFailed
Submit was attempted but blocked by validation. Field errors are populated; the host should re-render.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormEvent
impl RefUnwindSafe for FormEvent
impl Send for FormEvent
impl Sync for FormEvent
impl Unpin for FormEvent
impl UnsafeUnpin for FormEvent
impl UnwindSafe for FormEvent
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