Skip to main content

NameKind

Enum NameKind 

Source
#[non_exhaustive]
pub enum NameKind {
Show 37 variants Directory, TargetName, Label, Digest, SourcePath, OutputName, EnvName, Argument, Command, Description, SettingName, SettingValue, EntryName, FieldName, Program, EnvValue, Platform, Workers, Timeout, Isolation, Approver, TreePath, EnvMark, PluginName, PluginVersion, PluginChain, CommitId, TagName, GitUrl, RemoteUrl, InstanceName, HostPath, HeaderName, ChangedPath, RemoteJobs, RetryCount, PlatformProperty,
}
Expand description

Which domain name an Error::InvalidName is about.

A type rather than a string so classification is read as a field. Non-exhaustive for the same reason Error is.

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.
§

Directory

A workspace-relative directory path.

§

TargetName

The name half of a label.

§

Label

A whole label.

§

Digest

A content digest.

§

SourcePath

A workspace-relative source file path.

§

OutputName

A path inside a target’s output directory.

§

EnvName

An environment variable name.

§

Argument

One element of a command’s argument vector.

§

Command

A whole command: a non-empty argument vector.

§

Description

A rule’s one-line description.

§

SettingName

A build setting’s name.

§

SettingValue

A build setting’s value.

§

EntryName

The file name every directory’s build file has.

§

FieldName

A field name in a declaration’s option table.

§

Program

The name of a program a command runs.

§

EnvValue

An environment variable’s value.

§

Platform

A host platform: an operating system and an architecture.

§

Workers

How many actions a build runs at once.

§

Timeout

How long one action may run.

§

Isolation

The execution strategy a workspace runs its actions under.

§

Approver

How a workspace settles whether a build may run.

§

TreePath

The path of a file inside a directory an action left as an output.

§

EnvMark

How a declared environment variable takes part in an action key.

§

PluginName

The name of a plugin.

§

PluginVersion

The version text a plugin’s manifest states.

§

PluginChain

The chain of plugins that declared a target.

§

CommitId

A full git commit id.

§

TagName

A git tag name.

§

GitUrl

The URL of a git repository.

§

RemoteUrl

The URL of a remote cache.

§

InstanceName

The instance name a remote cache is addressed under.

§

HostPath

A path to a file the host reads, such as a certificate or a token.

§

HeaderName

The name of the request header a remote cache’s token is sent in.

§

ChangedPath

A workspace-relative path a file event named.

§

RemoteJobs

How many remote calls a run keeps in flight at once.

§

RetryCount

How many times a failed remote call is tried again.

§

PlatformProperty

The name of a platform property asked of the remote executor.

Trait Implementations§

Source§

impl Clone for NameKind

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 Copy for NameKind

Source§

impl Debug for NameKind

Source§

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

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

impl Display for NameKind

Source§

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

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

impl Eq for NameKind

Source§

impl PartialEq for NameKind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NameKind

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.