pub enum ProofError {
Car(CarError),
Roots(usize),
NoCommit,
Commit(CommitError),
Tree(StoreError),
Record(String),
}Expand description
Why a proof establishes nothing about a record.
Variants§
Car(CarError)
The file is not a CAR file whose blocks hash to their names.
Roots(usize)
The file roots at something other than one commit.
NoCommit
The root’s block is not in the file.
Commit(CommitError)
The root is not a commit the repository signed with this key.
Tree(StoreError)
The walk from the tree root needs a block the file does not hold, or the tree is malformed.
Record(String)
The tree names a record, and the file does not hold it as one.
Trait Implementations§
Source§impl Clone for ProofError
impl Clone for ProofError
Source§fn clone(&self) -> ProofError
fn clone(&self) -> ProofError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProofError
impl Debug for ProofError
Source§impl Display for ProofError
impl Display for ProofError
Source§impl Error for ProofError
impl Error for ProofError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CarError> for ProofError
impl From<CarError> for ProofError
Source§impl From<CommitError> for ProofError
impl From<CommitError> for ProofError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for ProofError
impl From<StoreError> for ProofError
Source§impl PartialEq for ProofError
impl PartialEq for ProofError
Source§fn eq(&self, other: &ProofError) -> bool
fn eq(&self, other: &ProofError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProofError
impl StructuralPartialEq for ProofError
Auto Trait Implementations§
impl Freeze for ProofError
impl RefUnwindSafe for ProofError
impl Send for ProofError
impl Sync for ProofError
impl Unpin for ProofError
impl UnsafeUnpin for ProofError
impl UnwindSafe for ProofError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.