Skip to main content

CargoOutput

Enum CargoOutput 

Source
pub enum CargoOutput {
Show 24 variants NotUtf8(Utf8Error), BuildMessage(DecodeError), Launchers, NoLauncher, DependencyTarget { file: PathBuf, }, Metadata(DecodeError), NoKey { key: MetadataKey, }, DuplicateId { id: String, }, NoPackages, NoResolve, NoSelected, NoPackage { id: String, }, NoNode { id: String, }, NoDependencies { id: String, }, NoKinds, DependencyKind { kind: String, }, NoRoot { manifest: PathBuf, }, Toolkits, NoToolkitSource, ToolkitSource { source: String, }, GitCommit { source: String, }, GitReference { source: String, }, GitReferenceKind { kind: String, }, NoWorkspaceRoot,
}
Expand description

What Cargo reported that the toolkit does not read.

Variants§

§

NotUtf8(Utf8Error)

Cargo’s output is not UTF-8.

§

BuildMessage(DecodeError)

A line of cargo build’s messages is not JSON.

§

Launchers

cargo build reported more than one launcher executable.

§

NoLauncher

cargo build reported no launcher executable.

§

DependencyTarget

Cargo’s dependency information at file names no target.

Fields

§file: PathBuf

The dependency information.

§

Metadata(DecodeError)

cargo metadata’s output is not JSON.

§

NoKey

A row of cargo metadata has no text at key.

Fields

§key: MetadataKey

The key.

§

DuplicateId

Two rows of cargo metadata share the ID id.

Fields

§id: String

The ID.

§

NoPackages

cargo metadata has no packages.

§

NoResolve

cargo metadata has no resolved dependency graph.

§

NoSelected

cargo metadata has no package for the library’s manifest.

§

NoPackage

cargo metadata has no package with the ID id.

Fields

§id: String

The ID.

§

NoNode

cargo metadata’s graph has no node with the ID id.

Fields

§id: String

The ID.

§

NoDependencies

The node with the ID id has no deps.

Fields

§id: String

The ID.

§

NoKinds

A dependency has no dep_kinds.

§

DependencyKind

A dependency’s kind is none of normal, build and dev.

Fields

§kind: String

The kind, as Cargo wrote it.

§

NoRoot

A package’s manifest, at manifest, lies in no directory.

Fields

§manifest: PathBuf

The manifest.

§

Toolkits

The library resolves more than one flow-toolkit package.

§

NoToolkitSource

The toolkit’s package has no source.

§

ToolkitSource

The toolkit’s source is neither a path, a registry nor Git.

Fields

§source: String

The source.

§

GitCommit

The toolkit’s Git source has no commit identity.

Fields

§source: String

The source.

§

GitReference

The toolkit’s Git source names a reference with no value.

Fields

§source: String

The source.

§

GitReferenceKind

The toolkit’s Git source names a reference that is no branch, tag or rev.

Fields

§kind: String

The kind.

§

NoWorkspaceRoot

cargo metadata names no workspace root.

Trait Implementations§

Source§

impl Clone for CargoOutput

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CargoOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CargoOutput

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CargoOutput> for PrepareError

Source§

fn from(output: CargoOutput) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Forget for CargoOutput

§

impl Freeze for CargoOutput

§

impl Move for CargoOutput

§

impl RefUnwindSafe for CargoOutput

§

impl Send for CargoOutput
where RawVecInner: Send,

§

impl Sync for CargoOutput
where RawVecInner: Sync,

§

impl Unpin for CargoOutput
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for CargoOutput

§

impl UnwindSafe for CargoOutput
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.