pub enum ToolErrorKind {
NotSupported,
WrongKeyAlgorithm,
NoInput,
IncorrectData,
}
Expand description
Errors originating in the parsec-tool.
Variants§
NotSupported
Operation not supported by the parsec-tool
WrongKeyAlgorithm
They key was not created with the correct algorithm for this operation
NoInput
Expected input data was not given
IncorrectData
Cannot serialise or deserialise data
Trait Implementations§
Source§impl Debug for ToolErrorKind
impl Debug for ToolErrorKind
Source§impl Display for ToolErrorKind
impl Display for ToolErrorKind
Source§impl Error for ToolErrorKind
impl Error for ToolErrorKind
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<ToolErrorKind> for Error
impl From<ToolErrorKind> for Error
Source§fn from(source: ToolErrorKind) -> Self
fn from(source: ToolErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolErrorKind
impl RefUnwindSafe for ToolErrorKind
impl Send for ToolErrorKind
impl Sync for ToolErrorKind
impl Unpin for ToolErrorKind
impl UnwindSafe for ToolErrorKind
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