#[non_exhaustive]pub enum SubmitBlocker {
ValidationErrors,
ParseErrors,
PendingValidation,
InFlightSubmission,
StaleSubmitValidation,
}Expand description
A known reason a submission is unavailable or one submission attempt was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ValidationErrors
Stored validation errors currently block submission.
ParseErrors
Mounted input bindings currently have parse errors.
PendingValidation
Required validation is currently pending.
InFlightSubmission
A submission has started and has not completed yet.
StaleSubmitValidation
The Submit Validation Token presented by an attempt no longer applies to current form state.
This is an attempt outcome rather than a standing form condition, so
SubmitAvailability never contains it. Submit the current draft again to validate it and
obtain a current authorization.
Trait Implementations§
Source§impl Clone for SubmitBlocker
impl Clone for SubmitBlocker
Source§fn clone(&self) -> SubmitBlocker
fn clone(&self) -> SubmitBlocker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubmitBlocker
Source§impl Debug for SubmitBlocker
impl Debug for SubmitBlocker
impl Eq for SubmitBlocker
Source§impl PartialEq for SubmitBlocker
impl PartialEq for SubmitBlocker
impl StructuralPartialEq for SubmitBlocker
Auto Trait Implementations§
impl Freeze for SubmitBlocker
impl RefUnwindSafe for SubmitBlocker
impl Send for SubmitBlocker
impl Sync for SubmitBlocker
impl Unpin for SubmitBlocker
impl UnsafeUnpin for SubmitBlocker
impl UnwindSafe for SubmitBlocker
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