Enum gi_t::GiError[][src]

pub enum GiError {
    BadPrefix,
    GitFail,
    NoArgs,
    StdoutReset,
    StdoutSet,
}

An enum to describe different errors that could occur while executing gi_t.

Variants

BadPrefix

The first argument does not begin with a t.

GitFail

Spawning git child process results in a failure.

NoArgs

No arguments are passed to gi_t.

StdoutReset

A failure is encountered resetting stdout terminal color.

StdoutSet

A failure is encountered setting stdout terminal color.

Implementations

impl GiError[src]

pub fn print(self)[src]

A helper method to print the associated error message for a GiError.

Trait Implementations

impl Clone for GiError[src]

impl Debug for GiError[src]

impl Display for GiError[src]

Auto Trait Implementations

impl RefUnwindSafe for GiError

impl Send for GiError

impl Sync for GiError

impl Unpin for GiError

impl UnwindSafe for GiError

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> 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.