pub enum ErrorVisibility {
User,
Internal,
}Expand description
Whether an error should be surfaced directly to a human.
Variants§
User
Safe and useful to show directly to the caller.
Internal
Primarily diagnostic for runtime internals.
Trait Implementations§
Source§impl Clone for ErrorVisibility
impl Clone for ErrorVisibility
Source§fn clone(&self) -> ErrorVisibility
fn clone(&self) -> ErrorVisibility
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 moreSource§impl Debug for ErrorVisibility
impl Debug for ErrorVisibility
Source§impl PartialEq for ErrorVisibility
impl PartialEq for ErrorVisibility
Source§fn eq(&self, other: &ErrorVisibility) -> bool
fn eq(&self, other: &ErrorVisibility) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorVisibility
impl Eq for ErrorVisibility
impl StructuralPartialEq for ErrorVisibility
Auto Trait Implementations§
impl Freeze for ErrorVisibility
impl RefUnwindSafe for ErrorVisibility
impl Send for ErrorVisibility
impl Sync for ErrorVisibility
impl Unpin for ErrorVisibility
impl UnsafeUnpin for ErrorVisibility
impl UnwindSafe for ErrorVisibility
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).