[][src]Struct dangerous::Fatal

#[must_use = "error must be handled"]pub struct 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]

impl<'i> From<ExpectedValid<'i>> for Fatal[src]

impl<'i> From<ExpectedValue<'i>> for Fatal[src]

impl NoInteriorMut for Fatal[src]

impl PartialEq<Fatal> for Fatal[src]

impl StructuralPartialEq for Fatal[src]

impl ToRetryRequirement for Fatal[src]

impl<'i> WithContext<'i> for Fatal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Guarded for T where
    T: NoInteriorMut
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.