[−][src]Enum simctl::Error
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
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
).
Utf8(FromUtf8Error)
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]
fn from(error: FromUtf8Error) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,