#[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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)