Skip to main content

ViewError

Enum ViewError 

Source
pub enum ViewError {
Show 13 variants StaleHead { target: String, expected: Option<ContentHash>, actual: Option<ContentHash>, }, Decode(String), Log(LogError), Store(StoreError), Review(String), Provenance(String), Check(String), Change(String), Identity(String), Snapshot(String), Resolution(String), Vouch(String), Witness(String),
}
Expand description

Failure modes of view folding and commit storage.

Variants§

§

StaleHead

CAS failure: prev did not match the current head/target.

Fields

§target: String

The workspace or ref name that was targeted.

§expected: Option<ContentHash>

What the op expected the current value to be.

§actual: Option<ContentHash>

What the view actually held.

§

Decode(String)

Payload or stored commit bytes failed to decode.

§

Log(LogError)

Underlying op-log failure.

§

Store(StoreError)

Underlying chunk-store failure.

§

Review(String)

Review-op precondition failure (duplicate id, unknown review, or a reviewer not on the review’s list).

§

Provenance(String)

Provenance-record precondition failure (empty subject or kind).

§

Check(String)

Check-report precondition failure: an empty name or reporter, or a name carrying the key separator.

§

Change(String)

Change lifecycle precondition failure (duplicate identity, invalid binding, unknown/archived change, or no-op checkpoint).

§

Identity(String)

Key-binding precondition failure: an empty or /-bearing operator, a channel that reads as a different operator, a key already bound elsewhere, or a revoked/unbound key.

§

Snapshot(String)

Ref-snapshot precondition failure: the claimed ref map does not match the view, the claimed position is not the fold position, or the chain pointer does not name the latest admitted snapshot.

§

Resolution(String)

Resolution-link precondition failure: Commit::resolves names a commit the store does not hold, or one with nothing to resolve.

§

Vouch(String)

Vouch precondition failure (D65): an end that is not an operator with an unrevoked binding, a self-vouch, an edge that already stands, or a withdrawal of one that does not.

§

Witness(String)

Witness precondition failure (D67): a witness with no live key binding, a cosignature over anything but the latest ref-state attestation, or one that witness has already made.

Trait Implementations§

Source§

impl Debug for ViewError

Source§

fn fmt(&self, f: &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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.