Error

Enum Error 

Source
pub enum Error {
Show 33 variants NoRootCommit, NoLastCommit, InvalidExternalFile(String), UnknownEventKind(u16), UnknownEventType(String), NotSymmetric, NotAsymmetric, InvalidCipher(String), InvalidNonce, InvalidKeyDerivation(String), BadAccountIdPrefix, BadIdentity(u8, usize, String), IdentityLength, CreateEventMustBeFirst, CreateEventOnlyFirst, Boxed(Box<dyn Error + Send + Sync>), Io(Error), Authentication(AuthenticationError), Json(Error), Base58(Error), TryFromSlice(TryFromSliceError), Hex(FromHexError), Uuid(Error), Time(ComponentRange), TimeFormat(Format), TimeParse(Parse), InvalidFormat(InvalidFormatDescription), Sha2DigestLength(InvalidLength), Pem(PemError), ChaCha(Error), PasswordHash(Error), AgeEncrypt(EncryptError), AgeDecrypt(DecryptError),
}
Expand description

Error thrown by the core library.

Variants§

§

NoRootCommit

Error generated when a commit tree is expected to have a root.

§

NoLastCommit

Error generated when a commit tree is expected to have a last commit.

§

InvalidExternalFile(String)

Error generated when an external file could not be parsed.

§

UnknownEventKind(u16)

Error generated when the kind identifier of an event is unknown.

§

UnknownEventType(String)

Error generated when the kind identifier of an event is unknown.

§

NotSymmetric

Error generated when attempting to use an asymmetric private key with a symmetric cipher.

§

NotAsymmetric

Error generated when attempting to use a symmetric private key with an asymmetric cipher.

§

InvalidCipher(String)

Error generated when a vault cipher string identifier is wrong.

§

InvalidNonce

Error generated when an AeadPack contains a nonce that is invalid for the decryption cipher.

§

InvalidKeyDerivation(String)

Error generated when a vault key derivation function string identifier is wrong.

§

BadAccountIdPrefix

Error generated when an account identififer has the wrong prefix.

§

BadIdentity(u8, usize, String)

Error generated when a vault identity byte is wrong.

§

IdentityLength

Error generated when a buffer used to read identity bytes is not long enough.

§

CreateEventMustBeFirst

Error generated when a a event log file does not begin with a create vault event.

§

CreateEventOnlyFirst

Error generated when a event log create vault event is not the first record.

§

Boxed(Box<dyn Error + Send + Sync>)

Generic boxed error.

§

Io(Error)

Error generated converting by the IO module.

§

Authentication(AuthenticationError)

Authentication errors.

§

Json(Error)

Error generated by the JSON library.

§

Base58(Error)

Error generated by the Base58 library.

§

TryFromSlice(TryFromSliceError)

Error generated converting to fixed length slice.

§

Hex(FromHexError)

Error generated converting from hexadecimal.

§

Uuid(Error)

Error generated converting from UUID.

§

Time(ComponentRange)

Error generated converting time types.

§

TimeFormat(Format)

Error generated formatting time.

§

TimeParse(Parse)

Error generated parsing time.

§

InvalidFormat(InvalidFormatDescription)

Error generated creating format descriptions for date formatting.

§

Sha2DigestLength(InvalidLength)

Error generated by the SHA2 library.

§

Pem(PemError)

Error generated parsing PEM files.

§

ChaCha(Error)

Error generated by the crypto library.

§

PasswordHash(Error)

Error generated by password hash.

§

AgeEncrypt(EncryptError)

Error generated by the AGE library when encrypting.

§

AgeDecrypt(DecryptError)

Error generated by the AGE library when decrypting.

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, __formatter: &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<AuthenticationError> for Error

Source§

fn from(source: AuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<Box<dyn Error + Send + Sync>> for Error

Source§

fn from(source: Box<dyn Error + Send + Sync>) -> Self

Converts to this type from the input type.
Source§

impl From<ComponentRange> for Error

Source§

fn from(source: ComponentRange) -> Self

Converts to this type from the input type.
Source§

impl From<DecryptError> for Error

Source§

fn from(source: DecryptError) -> Self

Converts to this type from the input type.
Source§

impl From<EncryptError> for Error

Source§

fn from(source: EncryptError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Format> for Error

Source§

fn from(source: Format) -> Self

Converts to this type from the input type.
Source§

impl From<FromHexError> for Error

Source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidFormatDescription> for Error

Source§

fn from(source: InvalidFormatDescription) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidLength> for Error

Source§

fn from(source: InvalidLength) -> Self

Converts to this type from the input type.
Source§

impl From<Parse> for Error

Source§

fn from(source: Parse) -> Self

Converts to this type from the input type.
Source§

impl From<PemError> for Error

Source§

fn from(source: PemError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromSliceError> for Error

Source§

fn from(source: TryFromSliceError) -> 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 !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> Same for T

Source§

type Output = T

Should always be Self
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 = 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,