[][src]Enum wordexp::WordexpErrorType

pub enum WordexpErrorType {
    BadChar,
    BadVal,
    CmdSub,
    NoSpace,
    Syntax,
    Unknown,
}

Errors types for WordexpError

Variants

BadChar

Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }.

BadVal

An undefined shell variable was referenced, and the WRDE_UNDEF flag told us to consider this an error.

CmdSub

Command substitution occurred, and the WRDE_NOCMD flag told us to consider this an error.

NoSpace

Out of memory.

Syntax

Shell syntax error, such as unbalanced parentheses or unmatched quotes.

Unknown

Unknown Error, most likely caused by wrapper code between Rust and C

Methods

impl WordexpErrorType[src]

pub fn from(error_code: i32) -> Self[src]

converts a C wordexp error code to a Rust enum

Trait Implementations

impl Clone for WordexpErrorType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for WordexpErrorType[src]

Auto Trait Implementations

Blanket Implementations

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, U> Into<U> for T where
    U: From<T>, 
[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]