[][src]Enum cargo_whatfeatures::error::UserError

pub enum UserError {
    CannotLookup {
        name: String,
        version: Option<String>,
        error: String,
    },
    NoVersions {
        name: String,
    },
    InvalidVersion {
        name: String,
        version: String,
    },
}

An error generated by user input

Variants

CannotLookup

Cannot look up the crate

Fields of CannotLookup

name: String

Name of the crate

version: Option<String>

Version of the crate

error: String

Error display

NoVersions

No versions found for the crate

Fields of NoVersions

name: String

Name of the crate

InvalidVersion

An invalid version was specified for the crate

Fields of InvalidVersion

name: String

Name of the crate

version: String

Version of the crate

Trait Implementations

impl Debug for UserError[src]

impl Serialize for UserError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,