Skip to main content

ProblemCode

Enum ProblemCode 

Source
pub enum ProblemCode {
Show 35 variants TaskUnknown, EmptyTask, DecisionRequired, BranchExists, BranchInUse, Cancelled, DamagedState, DefaultBranchUnknown, GitFailed, GitOutputLimit, IncompatibleState, InvalidGitOutput, InvalidInput, InvalidParticipantName, InvalidRemote, InvalidTask, LaunchFailed, ParticipantNameConflict, ParticipantNameRequired, PathOverlap, ProjectAmbiguous, ProjectUnknown, PublicationUncertain, RemoteRequired, RepositoryAliasConflict, RepositoryChanged, ResourceBusy, SerializationFailed, SourceMissing, StaleIdentity, SupervisionFailed, TaskExists, WorkspaceNotFound, WorkspaceBindingConflict, IoError,
}
Expand description

Machine-readable classification carried by a Workyard problem.

Variants§

§

TaskUnknown

No task matches the requested name.

§

EmptyTask

The requested membership change would leave the task without participants.

§

DecisionRequired

The operation requires a choice or explicit consent to continue.

§

BranchExists

Creating the target branch would collide with an existing branch.

§

BranchInUse

Another worktree already has the requested branch checked out.

§

Cancelled

The caller requested cancellation.

§

DamagedState

Stored data could not be validated or reconciled.

§

DefaultBranchUnknown

The repository’s default starting branch could not be determined.

§

GitFailed

Git reported an unsuccessful exit.

§

GitOutputLimit

Git output exceeded the limit for reliable inspection.

§

IncompatibleState

The stored format or required state capability is unsupported.

§

InvalidGitOutput

Git returned data the adapter could not interpret.

§

InvalidInput

An argument or combination of arguments is invalid.

§

InvalidParticipantName

The supplied name cannot be used for a participant directory.

§

InvalidRemote

The selected Git remote is invalid for this repository.

§

InvalidTask

The proposed task name is invalid.

§

LaunchFailed

The supervised process could not start.

§

ParticipantNameConflict

Multiple participants would occupy the same task-local name.

§

ParticipantNameRequired

A participant needs an explicit task-local name.

§

PathOverlap

The requested locations overlap in an unsupported way.

§

ProjectAmbiguous

Several discovered repositories match the project selector.

§

ProjectUnknown

No discovered project matches the selector.

§

PublicationUncertain

A write may be visible but its final publication could not be confirmed.

§

RemoteRequired

The operation requires an unambiguous remote selection.

§

RepositoryAliasConflict

Multiple selections resolve to the same backing repository.

§

RepositoryChanged

The observed repository or worktree no longer matches expectations.

§

ResourceBusy

Another operation may still own the resource.

§

SerializationFailed

Data could not be encoded for storage or delivery.

§

SourceMissing

The requested branch starting point could not be resolved.

§

StaleIdentity

The named filesystem entry no longer matches its expected identity.

§

SupervisionFailed

The process supervisor could not establish a reliable command outcome.

§

TaskExists

The requested task or its destination is already occupied.

§

WorkspaceNotFound

No initialized workspace was found for the supplied location.

§

WorkspaceBindingConflict

Workspace state and requested workspace placement disagree.

§

IoError

An operating-system I/O operation failed.

Implementations§

Source§

impl ProblemCode

Source

pub fn as_str(self) -> &'static str

Return the stable spelling used in records or output.

Trait Implementations§

Source§

impl Clone for ProblemCode

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 ProblemCode

Source§

impl Debug for ProblemCode

Source§

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

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

impl Display for ProblemCode

Source§

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

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

impl Eq for ProblemCode

Source§

impl FromStr for ProblemCode

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for ProblemCode

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 ProblemCode

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