Enum lasso::LassoErrorKind
source · pub enum LassoErrorKind {
MemoryLimitReached,
KeySpaceExhaustion,
FailedAllocation,
}
Expand description
The kind of error that occurred
Variants§
MemoryLimitReached
A memory limit set using MemoryLimits
was reached, and no more memory could be allocated
KeySpaceExhaustion
A Key
implementation returned None
, meaning it could not produce any more keys
FailedAllocation
A memory allocation failed
Implementations§
source§impl LassoErrorKind
impl LassoErrorKind
sourcepub fn is_memory_limit(self) -> bool
pub fn is_memory_limit(self) -> bool
A memory limit set using MemoryLimits
was reached, and no more memory could be allocated
sourcepub fn is_keyspace_exhaustion(self) -> bool
pub fn is_keyspace_exhaustion(self) -> bool
A Key
implementation returned None
, meaning it could not produce any more keys
sourcepub fn is_failed_alloc(self) -> bool
pub fn is_failed_alloc(self) -> bool
A memory allocation failed
Trait Implementations§
source§impl Clone for LassoErrorKind
impl Clone for LassoErrorKind
source§fn clone(&self) -> LassoErrorKind
fn clone(&self) -> LassoErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LassoErrorKind
impl Debug for LassoErrorKind
source§impl Display for LassoErrorKind
impl Display for LassoErrorKind
source§impl Hash for LassoErrorKind
impl Hash for LassoErrorKind
source§impl PartialEq<LassoErrorKind> for LassoErrorKind
impl PartialEq<LassoErrorKind> for LassoErrorKind
source§fn eq(&self, other: &LassoErrorKind) -> bool
fn eq(&self, other: &LassoErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LassoErrorKind
impl Eq for LassoErrorKind
impl StructuralEq for LassoErrorKind
impl StructuralPartialEq for LassoErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for LassoErrorKind
impl Send for LassoErrorKind
impl Sync for LassoErrorKind
impl Unpin for LassoErrorKind
impl UnwindSafe for LassoErrorKind
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