pub enum DirectoryError {
Verification(VerificationError),
InvalidEpoch(String),
ReadOnlyDirectory(String),
Publish(String),
InvalidVersion(String),
}Expand description
The errors thrown by various algorithms in crate::directory::Directory
Variants§
Verification(VerificationError)
A verification error occurred
InvalidEpoch(String)
Tried to perform an operation on an invalid epoch or epoch range
ReadOnlyDirectory(String)
AZKS not found in read-only directory mode
Publish(String)
Publish
InvalidVersion(String)
Detected an invalid version
Trait Implementations§
Source§impl Debug for DirectoryError
impl Debug for DirectoryError
Source§impl Display for DirectoryError
impl Display for DirectoryError
Source§impl Error for DirectoryError
impl Error for DirectoryError
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 From<DirectoryError> for AkdError
impl From<DirectoryError> for AkdError
Source§fn from(error: DirectoryError) -> Self
fn from(error: DirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<VerificationError> for DirectoryError
impl From<VerificationError> for DirectoryError
Source§fn from(err: VerificationError) -> Self
fn from(err: VerificationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DirectoryError
impl RefUnwindSafe for DirectoryError
impl Send for DirectoryError
impl Sync for DirectoryError
impl Unpin for DirectoryError
impl UnsafeUnpin for DirectoryError
impl UnwindSafe for DirectoryError
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