Enum ErrorPolicy
#[non_exhaustive]
pub enum ErrorPolicy
Policy for customizing behavior in case of an error.
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
impl Clone for ErrorPolicy
fn clone(&self) -> Self
impl Copy for ErrorPolicy
impl Eq for ErrorPolicy
impl PartialEq for ErrorPolicy
fn eq(&self, other: &Self) -> bool
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 UnsafeUnpin for ErrorPolicy
impl UnwindSafe for ErrorPolicy
Blanket Implementations
impl<T> Any for ErrorPolicy
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ErrorPolicy
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ErrorPolicy
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ErrorPolicy
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ErrorPolicy
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ErrorPolicy
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ErrorPolicy
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ErrorPolicy
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ErrorPolicy
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>