[][src]Enum cpe::error::CpeError

pub enum CpeError {
    InvalidUri {
        value: String,
    },
    InvalidPacked {
        value: String,
        expected: String,
    },
    Utf8Error {
        source: Utf8Error,
        value: String,
    },
    InvalidOffset {
        value: String,
        offset: usize,
    },
    InvalidPrefix {
        value: String,
    },
    InvalidCharacter {
        value: String,
        position: usize,
        character: char,
        expected: String,
    },
    InvalidAVString {
        value: String,
        position: usize,
        character: char,
    },
    InvalidComponent {
        value: String,
        position: usize,
        character: char,
    },
    InvalidEscape {
        value: String,
        position: usize,
    },
    LanguageError {
        source: Error,
    },
    InvalidCpeType {
        value: String,
    },
    InvalidWfn {
        value: String,
        expected: String,
    },
    UnexpectedEnd {
        value: String,
        expected: String,
    },
    DuplicateAttribute {
        value: String,
        name: &'static str,
    },
    InvalidAttribute {
        value: String,
    },
}

Variants

InvalidUri

Fields of InvalidUri

value: String
InvalidPacked

Fields of InvalidPacked

value: Stringexpected: String
Utf8Error

Fields of Utf8Error

source: Utf8Errorvalue: String
InvalidOffset

Fields of InvalidOffset

value: Stringoffset: usize
InvalidPrefix

Fields of InvalidPrefix

value: String
InvalidCharacter

Fields of InvalidCharacter

value: Stringposition: usizecharacter: charexpected: String
InvalidAVString

Fields of InvalidAVString

value: Stringposition: usizecharacter: char
InvalidComponent

Fields of InvalidComponent

value: Stringposition: usizecharacter: char
InvalidEscape

Fields of InvalidEscape

value: Stringposition: usize
LanguageError

Fields of LanguageError

source: Error
InvalidCpeType

Fields of InvalidCpeType

value: String
InvalidWfn

Fields of InvalidWfn

value: Stringexpected: String
UnexpectedEnd

Fields of UnexpectedEnd

value: Stringexpected: String
DuplicateAttribute

Fields of DuplicateAttribute

value: Stringname: &'static str
InvalidAttribute

Fields of InvalidAttribute

value: String

Trait Implementations

impl Debug for CpeError[src]

impl Display for CpeError[src]

impl Error for CpeError[src]

impl From<Error> for CpeError[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, 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.