pub enum TlshError {
DataLenOverflow,
InvalidHashValue,
MinSizeNotReached,
ParseHexFailed,
NoValidHash,
}Expand description
An enum for possible errors that might occur while calculating hash values.
Variants§
DataLenOverflow
Input’s length is too big to handle. Maximal file size is 4GB.
InvalidHashValue
The hash string is malformed and cannot be parsed.
MinSizeNotReached
TLSH requires an input of at least 50 bytes.
ParseHexFailed
Fails to parse a hex string to integer.
NoValidHash
Trait Implementations§
Source§impl From<ParseIntError> for TlshError
impl From<ParseIntError> for TlshError
Source§fn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TlshError
impl RefUnwindSafe for TlshError
impl Send for TlshError
impl Sync for TlshError
impl Unpin for TlshError
impl UnwindSafe for TlshError
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