Skip to main content

Error

Enum Error 

Source
pub enum Error {
    NotATracker {
        root: PathBuf,
        prefix: String,
    },
    IssueNotFound {
        id: String,
    },
    DuplicateId {
        id: String,
        paths: Vec<PathBuf>,
    },
    ClaimConflict {
        id: String,
        holder: String,
        claimed_at: Option<String>,
    },
    BlockerCycle {
        blocker: String,
        issue: String,
    },
    InvalidState {
        id: String,
        state: String,
    },
    StaleWrite {
        id: String,
        expected_state: Option<String>,
        actual_state: String,
        expected_gen: Option<u64>,
        actual_gen: Option<u64>,
    },
    TerminalConflict {
        id: String,
        held: String,
        attempted: String,
    },
    Other(Error),
}
Expand description

Recoverable catalog and mutation failures with a stable shape.

Variants§

§

NotATracker

The working directory was taken as the tracker root and holds no tracker, so an empty answer would be a wrong answer rather than a small one.

Fields

§root: PathBuf

The directory that was taken as the root.

§prefix: String

The project directory that was looked for inside it.

§

IssueNotFound

No heading in the corpus carries this id.

Fields

§id: String

The id that was looked up.

§

DuplicateId

The same id exists under more than one distinct tracker layout.

Fields

§id: String

The id that was found twice.

§paths: Vec<PathBuf>

The issues.org files that define it.

§

ClaimConflict

Another identity already holds the issue.

Fields

§id: String

The issue that is already claimed.

§holder: String

Who holds it.

§claimed_at: Option<String>

When the claim was stamped, if the heading recorded it.

§

BlockerCycle

The edge would close a loop in the blocker graph.

Fields

§blocker: String

The prospective prerequisite.

§issue: String

The issue that would wait on it.

§

InvalidState

The issue is in a state that cannot be claimed.

Fields

§id: String

The issue that was refused.

§state: String

The heading state at the time of the refusal.

§

StaleWrite

A write named a last-seen state or generation that no longer holds.

Fields

§id: String

The issue that was refused.

§expected_state: Option<String>

State the caller required, when --if-state was set.

§actual_state: String

Heading state at the refusal.

§expected_gen: Option<u64>

Generation the caller required, when --if-gen was set.

§actual_gen: Option<u64>

Corpus generation at the refusal.

§

TerminalConflict

A second terminal disagrees with the one already on the heading.

Fields

§id: String

The issue that already has a terminal state.

§held: String

The terminal already written.

§attempted: String

The terminal the caller asked for.

§

Other(Error)

Any other failure, usually I/O or a parse problem.

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnsafeUnpin for Error

§

impl UnwindSafe for Error

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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.