[][src]Enum bootimage::builder::CreateBootimageError

pub enum CreateBootimageError {
    CargoMetadataIncomplete {
        key: String,
    },
    BootloaderNotFound,
    BootloaderInvalid(String),
    BootloaderBuildFailed {
        stderr: Vec<u8>,
    },
    Io {
        message: &'static str,
        error: Error,
    },
    LlvmTools(Error),
    LlvmObjcopyNotFound,
    ObjcopyFailed {
        stderr: Vec<u8>,
    },
    XbuildJsonOutputInvalidUtf8(FromUtf8Error),
    XbuildJsonOutputInvalidJson(Error),
    // some variants omitted
}

Represents an error that occurred when creating a bootimage.

Variants

CargoMetadataIncomplete

Could not find some required information in the cargo metadata output

Fields of CargoMetadataIncomplete

key: String

The required key that was not found

BootloaderNotFound

Bootloader dependency not found

BootloaderInvalid(String)

Bootloader dependency has not the right format

BootloaderBuildFailed

Building the bootloader failed

Fields of BootloaderBuildFailed

stderr: Vec<u8>

The cargo xbuild output to standard error

Io

An unexpected I/O error occurred

Fields of Io

message: &'static str

Desciption of the failed I/O operation

error: Error

The I/O error that occured

LlvmTools(Error)

There was a problem retrieving the llvm-tools-preview rustup component

LlvmObjcopyNotFound

The llvm-tools component did not contain the required llvm-objcopy executable

ObjcopyFailed

The llvm-objcopy command failed

Fields of ObjcopyFailed

stderr: Vec<u8>

The output of llvm-objcopy to standard error

XbuildJsonOutputInvalidUtf8(FromUtf8Error)

The output of cargo xbuild --message-format=json was not valid UTF-8

XbuildJsonOutputInvalidJson(Error)

The output of cargo xbuild --message-format=json was not valid JSON

Trait Implementations

impl Debug for CreateBootimageError[src]

impl Display for CreateBootimageError[src]

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