pub enum ProcessingError {
TextTooLarge {
size: usize,
max: usize,
},
InvalidConfig {
reason: String,
},
ParallelError {
source: Box<dyn Error + Send + Sync>,
},
Utf8Error {
position: usize,
},
ChunkingError {
reason: String,
},
Utf8BoundaryError {
position: usize,
},
WordBoundaryError {
position: usize,
},
InvalidChunkBoundaries {
start: usize,
end: usize,
next: usize,
},
AllocationError {
reason: String,
},
IoError {
source: Error,
},
LanguageRulesError {
reason: String,
},
Other(String),
}Expand description
Errors that can occur during text processing
Variants§
TextTooLarge
Text exceeds maximum size limit
InvalidConfig
Invalid configuration parameters
ParallelError
Error during parallel processing
Utf8Error
UTF-8 encoding error
ChunkingError
Chunk boundary calculation error
Utf8BoundaryError
UTF-8 boundary detection failed
WordBoundaryError
Word boundary detection failed
InvalidChunkBoundaries
Invalid chunk configuration
AllocationError
Memory allocation failure
IoError
I/O error (for future file operations)
LanguageRulesError
Language rules error
Other(String)
Other errors
Trait Implementations§
Source§impl Debug for ProcessingError
impl Debug for ProcessingError
Source§impl Display for ProcessingError
impl Display for ProcessingError
Source§impl Error for ProcessingError
impl Error for ProcessingError
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<Error> for ProcessingError
impl From<Error> for ProcessingError
Source§impl From<ProcessingError> for Error
impl From<ProcessingError> for Error
Source§fn from(source: ProcessingError) -> Self
fn from(source: ProcessingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessingError
impl !RefUnwindSafe for ProcessingError
impl Send for ProcessingError
impl Sync for ProcessingError
impl Unpin for ProcessingError
impl !UnwindSafe for ProcessingError
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