pub struct SelectiveErrorHandler { /* private fields */ }Expand description
Selective error handler that only handles certain types of errors
Implementationsยง
Sourceยงimpl SelectiveErrorHandler
impl SelectiveErrorHandler
Sourcepub fn with_field_error_logging(self) -> Self
pub fn with_field_error_logging(self) -> Self
Enable logging for field errors
Sourcepub fn without_validation_error_logging(self) -> Self
pub fn without_validation_error_logging(self) -> Self
Disable logging for validation errors
Sourcepub fn without_critical_error_reporting(self) -> Self
pub fn without_critical_error_reporting(self) -> Self
Disable reporting for critical errors
Trait Implementationsยง
Sourceยงimpl Default for SelectiveErrorHandler
impl Default for SelectiveErrorHandler
Sourceยงimpl ErrorHandler for SelectiveErrorHandler
impl ErrorHandler for SelectiveErrorHandler
Sourceยงfn handle_error(&self, error: &FormError, context: &ErrorContext)
fn handle_error(&self, error: &FormError, context: &ErrorContext)
Handle a form error
Sourceยงfn should_log_error(&self, error: &FormError) -> bool
fn should_log_error(&self, error: &FormError) -> bool
Check if an error should be logged
Sourceยงfn should_report_error(&self, error: &FormError) -> bool
fn should_report_error(&self, error: &FormError) -> bool
Check if an error should be reported to external services
Auto Trait Implementationsยง
impl Freeze for SelectiveErrorHandler
impl RefUnwindSafe for SelectiveErrorHandler
impl Send for SelectiveErrorHandler
impl Sync for SelectiveErrorHandler
impl Unpin for SelectiveErrorHandler
impl UnsafeUnpin for SelectiveErrorHandler
impl UnwindSafe for SelectiveErrorHandler
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 moreSourceยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Sourceยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Sourceยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.