pub enum BatchError {
InvalidConfig(String),
ResourceExhausted(String),
CryptoError(String),
ParallelError(String),
GenerationError(String),
ScannerError(String),
StreamError(String),
IoError(String),
}Expand description
Errors that can occur during batch key generation.
Variants§
InvalidConfig(String)
Invalid configuration parameter.
ResourceExhausted(String)
Insufficient system resources (memory, CPU, etc.).
CryptoError(String)
Cryptographic operation failed.
ParallelError(String)
Parallel processing error.
GenerationError(String)
Key generation failed.
ScannerError(String)
Scanner operation failed.
StreamError(String)
Stream operation failed.
IoError(String)
I/O operation failed.
Implementations§
Source§impl BatchError
impl BatchError
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Create a new invalid configuration error.
Sourcepub fn resource_exhausted(msg: impl Into<String>) -> Self
pub fn resource_exhausted(msg: impl Into<String>) -> Self
Create a new resource exhausted error.
Sourcepub fn crypto_error(msg: impl Into<String>) -> Self
pub fn crypto_error(msg: impl Into<String>) -> Self
Create a new cryptographic error.
Sourcepub fn parallel_error(msg: impl Into<String>) -> Self
pub fn parallel_error(msg: impl Into<String>) -> Self
Create a new parallel processing error.
Sourcepub fn generation_error(msg: impl Into<String>) -> Self
pub fn generation_error(msg: impl Into<String>) -> Self
Create a new generation error.
Sourcepub fn scanner_error(msg: impl Into<String>) -> Self
pub fn scanner_error(msg: impl Into<String>) -> Self
Create a new scanner error.
Sourcepub fn stream_error(msg: impl Into<String>) -> Self
pub fn stream_error(msg: impl Into<String>) -> Self
Create a new stream error.
Trait Implementations§
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
Source§impl Error for BatchError
impl Error for BatchError
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()
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnwindSafe for BatchError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more