#[non_exhaustive]pub enum ErrorPolicy {
FailFast,
MarkErrors,
}
Expand description
Policy for customizing behavior in case of an error.
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.
FailFast
Return as early as possible without producing output in case of error.
MarkErrors
In case of error, mark errors with the REPLACEMENT CHARACTER. (The output containing REPLACEMENT CHARACTERs may be show to the user to illustrate what was wrong but must not be used for naming in a network protocol.)
Trait Implementations§
Source§impl Clone for ErrorPolicy
impl Clone for ErrorPolicy
Source§fn clone(&self) -> ErrorPolicy
fn clone(&self) -> ErrorPolicy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for ErrorPolicy
impl PartialEq for ErrorPolicy
impl Copy for ErrorPolicy
impl Eq for ErrorPolicy
impl StructuralPartialEq for ErrorPolicy
Auto Trait Implementations§
impl Freeze for ErrorPolicy
impl RefUnwindSafe for ErrorPolicy
impl Send for ErrorPolicy
impl Sync for ErrorPolicy
impl Unpin for ErrorPolicy
impl UnwindSafe for ErrorPolicy
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