[][src]Enum creator_simctl::Error

pub enum Error {
    Output {
        stdout: String,
        stderr: String,
        status: ExitStatus,
    },
    Io(Error),
    Json(Error),
    Utf8(FromUtf8Error),
}

Error that is returned when the CLI does not successfully complete a request, or when the library encountered a problem while generating the request or while interpreting its response.

Variants

Output

This error is returned when the CLI exits with a non-zero exit code.

Fields of Output

stdout: String

Contains the output written to stdout before the CLI exited with a non-zero exit code.

stderr: String

Contains the output written to stderr before the CLI exited with a non-zero exit code.

status: ExitStatus

Contains the exit status.

Io(Error)

This error is returned when the library failed spawning a new process that runs the CLI. Most likely, this is caused by an incorrect Xcode path. If the Xcode path was set automatically, Xcode is probably not installed. If the Xcode path was set manually, it's probably incorrect. Make sure that it ends with Xcode(-*).app (where * can be an optional suffix to distinguish between stable and beta).

Json(Error)

This error is returned when the library failed to deserialize the response of simctl list -j (in crate::list) or when it failed to serialize a request for simctl push (in crate::push).

This error is returned when the library failed to interpret the CLI's response as a UTF-8 encoded string.

Trait Implementations

impl Debug for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

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