[][src]Struct status::Unkind

pub struct Unkind { /* fields omitted */ }

Adhoc Kind.

Unlike most Kinds, this is meant to be opaque and not programmatically specify the status. It is only good for displaying a str to the user when prototyping before one transitions to more formal Kinds.

Note: This is the default Kind for Status.

When transitioning to a more useful Kind, it could be helpful to have an enum variant with an Unkind:

#[derive(Copy, Clone, Debug, derive_more::Display)]
enum ErrorKind {
  #[display(fmt = "Failed to read file")]
  Read,
  #[display(fmt = "Failed to parse")]
  Parse,
  #[display(fmt = "{}", "_0")]
  Other(status::Unkind),
}

Trait Implementations

impl From<&'static str> for Unkind[src]

impl Clone for Unkind[src]

impl Copy for Unkind[src]

impl Display for Unkind[src]

impl Debug for Unkind[src]

Auto Trait Implementations

impl Send for Unkind

impl Sync for Unkind

impl Unpin for Unkind

impl UnwindSafe for Unkind

impl RefUnwindSafe for Unkind

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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