Enum hakari::TomlOutError[][src]

#[non_exhaustive]
pub enum TomlOutError {
    Platform(TargetSpecError),
    Toml {
        context: Cow<'static, str>,
        err: Error,
    },
    FmtWrite(Error),
    PathWithoutHakari {
        package_id: PackageId,
        rel_path: Utf8PathBuf,
    },
    UnrecognizedExternal {
        package_id: PackageId,
        source: String,
    },
    UnrecognizedRegistry {
        package_id: PackageId,
        registry_url: String,
    },
}
Expand description

An error that occurred while writing out TOML.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Platform(TargetSpecError)

An error occurred while serializing platform information.

Tuple Fields of Platform

0: TargetSpecError
Toml

An error occurred while serializing TOML.

This option is only present if the cli-support feature is enabled.

Fields of Toml

context: Cow<'static, str>

A context string for the error.

err: Error

The underlying error.

FmtWrite(Error)

An error occurred while writing to a fmt::Write instance.

Tuple Fields of FmtWrite

0: Error
PathWithoutHakari

Attempted to output a path dependency, but a Hakari package wasn’t provided to the builder.

If any path dependencies need to be unified, the location of the Hakari package must be specified so that a relative path can be displayed.

Fields of PathWithoutHakari

package_id: PackageId

The package ID that Hakari tried to write out a dependency line for.

rel_path: Utf8PathBuf

The relative path to the package from the root of the workspace.

UnrecognizedExternal

An external source wasn’t recognized by guppy.

Fields of UnrecognizedExternal

package_id: PackageId

The package ID that Hakari tried to write out a dependency line for.

source: String

The source string that wasn’t recognized.

UnrecognizedRegistry

An external registry was found and wasn’t passed into HakariOutputOptions.

Fields of UnrecognizedRegistry

package_id: PackageId

The package ID that Hakari tried to write out a dependency line for.

registry_url: String

The registry URL that wasn’t recognized.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.