[][src]Enum cheats::ShellError

pub enum ShellError<'a> {
    CodeAlreadyExists {
        name: &'a str,
    },
    CodeDoesNotExist {
        name: &'a str,
    },
    CodeError {
        err: CError<'a>,
    },
}

Variants

CodeAlreadyExists

This error is returned when a code already exists in the database. This usually happens when you register a code again.

Fields of CodeAlreadyExists

name: &'a str
CodeDoesNotExist

This error is returned when a code does not exist in the database. This usually happens when you try to unregister a code that does not exist.

Fields of CodeDoesNotExist

name: &'a str
CodeError

This error is returned when an error occurs in Code.

Fields of CodeError

err: CError<'a>

Trait Implementations

impl<'a> Debug for ShellError<'a>[src]

impl<'a> Display for ShellError<'a>[src]

impl<'a> Error for ShellError<'a> where
    Self: Debug + Display
[src]

impl<'a> ErrorCompat for ShellError<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ShellError<'a>

impl<'a> Send for ShellError<'a>

impl<'a> Sync for ShellError<'a>

impl<'a> Unpin for ShellError<'a>

impl<'a> UnwindSafe for ShellError<'a>

Blanket Implementations

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[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.