Skip to main content

LibraryProblem

Enum LibraryProblem 

Source
pub enum LibraryProblem {
Show 23 variants Toml(Box<Error>), PackagesNotList, UnnamedLockEntry, Unlocked { name: String, version: String, source: String, }, NoLock, NoManifest, VirtualWorkspace, NoPackage, NoLibraryTarget, DirectoryName, NoSharedRoot { root: PathBuf, }, NoToolkit { executable: PathBuf, }, RelativeLauncher, NotAContract(DecodeError), ModulePath(SegmentsError), NoTools, ConditionalTool, ConditionalLifespan, SecondLifespan, ModuleAttributes, ModuleName { name: String, }, OutsideRoot, Syntax(Box<Error>),
}
Expand description

What is wrong with a file of the library, or of its build.

Variants§

§

Toml(Box<Error>)

A TOML file, a manifest or a lock, does not parse.

§

PackagesNotList

A lock’s package is not a list.

§

UnnamedLockEntry

A package of a lock has no name or version.

§

Unlocked

The library’s launcher resolves a package the workspace’s lock does not lock at the same version, source and checksum.

Fields

§name: String

The package’s name.

§version: String

Its version.

§source: String

Its source.

§

NoLock

The library’s workspace has no Cargo.lock.

§

NoManifest

The library’s root has no Cargo.toml.

§

VirtualWorkspace

The manifest is a virtual workspace’s.

§

NoPackage

The manifest has no [package] with a name.

§

NoLibraryTarget

The library target’s source, src/lib.rs or [lib].path, is no file.

§

DirectoryName

The library’s directory has no UTF-8 name, which names its exported launcher.

§

NoSharedRoot

A file shares no root with the library at root.

Fields

§root: PathBuf

The library’s root.

§

NoToolkit

The library depends on no flow-toolkit crate, and the running toolkit, at executable, lies in no installation holding its sources.

Fields

§executable: PathBuf

The running toolkit.

§

RelativeLauncher

The launcher’s path in the cache is not absolute.

§

NotAContract(DecodeError)

The launcher wrote no contract in the value encoding.

§

ModulePath(SegmentsError)

A contract module’s path is no module path.

§

NoTools

The library has no public #[tool] function.

§

ConditionalTool

A #[tool] function is conditional.

§

ConditionalLifespan

A #[lifespan] function is conditional.

§

SecondLifespan

The library has a second #[lifespan] function.

§

ModuleAttributes

A public module holding Tools is conditional or has a #[path].

§

ModuleName

A public module holding Tools is named name, which is no Flow lowercase name.

Fields

§name: String

The module’s name.

§

OutsideRoot

A source file lies outside the library’s root.

§

Syntax(Box<Error>)

A source file does not parse as Rust.

Trait Implementations§

Source§

impl Clone for LibraryProblem

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 LibraryProblem

Source§

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

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

impl Display for LibraryProblem

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.