[−][src]Struct dangerous::Fatal
Fatal
contains no details around what went wrong and cannot be retried.
This is the most performant and simplistic catch-all error, but it doesn't provide any context to debug problems well and cannot be used in streaming contexts.
See crate::error
for additional documentation around the error system.
Example
use dangerous::Fatal; let error: Fatal = dangerous::input(b"").read_all(|r| { r.read_u8() }).unwrap_err(); assert_eq!( error.to_string(), "invalid input", );
Trait Implementations
impl Debug for Fatal
[src]
impl Display for Fatal
[src]
impl DisplayBase for Fatal
[src]
impl<'i> From<ExpectedLength<'i>> for Fatal
[src]
pub fn from(_: ExpectedLength<'i>) -> Self
[src]
impl<'i> From<ExpectedValid<'i>> for Fatal
[src]
pub fn from(_: ExpectedValid<'i>) -> Self
[src]
impl<'i> From<ExpectedValue<'i>> for Fatal
[src]
pub fn from(_: ExpectedValue<'i>) -> Self
[src]
impl NoInteriorMut for Fatal
[src]
impl PartialEq<Fatal> for Fatal
[src]
pub fn eq(&self, other: &Fatal) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Fatal
[src]
impl ToRetryRequirement for Fatal
[src]
pub fn to_retry_requirement(&self) -> Option<RetryRequirement>
[src]
pub fn is_fatal(&self) -> bool
[src]
impl<'i> WithContext<'i> for Fatal
[src]
pub fn with_context<C>(self, _input: Input<'i>, _context: C) -> Self where
C: Context,
[src]
C: Context,
Auto Trait Implementations
impl RefUnwindSafe for Fatal
[src]
impl Send for Fatal
[src]
impl Sync for Fatal
[src]
impl Unpin for Fatal
[src]
impl UnwindSafe for Fatal
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Guarded for T where
T: NoInteriorMut,
[src]
T: NoInteriorMut,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,