pub enum TestamentError {
WhitespaceNotAllowed(Vec<u8>),
LinebreakNotAllowed(String),
MissingFileSha1(Vec<u8>),
MissingSymlinkTarget(Vec<u8>),
}Expand description
Errors from building a testament.
Variants§
WhitespaceNotAllowed(Vec<u8>)
A field that must not contain whitespace did (revision id, file id, parent id, property name).
LinebreakNotAllowed(String)
A field that must not contain line breaks did (committer, path).
MissingFileSha1(Vec<u8>)
A file entry had no text sha1.
MissingSymlinkTarget(Vec<u8>)
A symlink entry had no target.
Trait Implementations§
Source§impl Debug for TestamentError
impl Debug for TestamentError
Source§impl Display for TestamentError
impl Display for TestamentError
impl Eq for TestamentError
Source§impl Error for TestamentError
impl Error for TestamentError
1.30.0 · 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 PartialEq for TestamentError
impl PartialEq for TestamentError
impl StructuralPartialEq for TestamentError
Auto Trait Implementations§
impl Freeze for TestamentError
impl RefUnwindSafe for TestamentError
impl Send for TestamentError
impl Sync for TestamentError
impl Unpin for TestamentError
impl UnsafeUnpin for TestamentError
impl UnwindSafe for TestamentError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.