pub enum ChunkStrategyError {
Show 15 variants
MissingFileId,
InvalidChunkIndex,
MissingChunkIndex,
InvalidTotalChunks,
MissingTotalChunks,
MissingFileName,
EmptyChunkData,
IndexOutOfBounds(usize, usize),
Merge,
CreateDirectory(String),
CreateChunkFile(String),
WriteChunk(String),
CreateOutputFile(String),
ReadChunk(String),
WriteOutput(String),
}
Expand description
Errors that can occur during chunking operations.
Represents various failure scenarios when processing file chunks.
Variants§
MissingFileId
Missing file ID header in request.
InvalidChunkIndex
Invalid chunk index value.
MissingChunkIndex
Missing chunk index header in request.
InvalidTotalChunks
Invalid total chunks value.
MissingTotalChunks
Missing total chunks header in request.
MissingFileName
Missing file name header in request.
EmptyChunkData
Received empty chunk data.
IndexOutOfBounds(usize, usize)
Chunk index exceeds total chunks.
Merge
Failed to merge chunks.
CreateDirectory(String)
Failed to create directory.
CreateChunkFile(String)
Failed to create chunk file.
WriteChunk(String)
Failed to write chunk data.
CreateOutputFile(String)
Failed to create output file.
ReadChunk(String)
Failed to read chunk file.
WriteOutput(String)
Failed to write to output file.
Trait Implementations§
Source§impl Debug for ChunkStrategyError
impl Debug for ChunkStrategyError
Source§impl Display for ChunkStrategyError
Provides display formatting for chunk strategy errors.
impl Display for ChunkStrategyError
Provides display formatting for chunk strategy errors.
Source§impl Error for ChunkStrategyError
Marks ChunkStrategyError as a standard error type.
impl Error for ChunkStrategyError
Marks ChunkStrategyError as a standard error type.
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 ChunkStrategyError
impl RefUnwindSafe for ChunkStrategyError
impl Send for ChunkStrategyError
impl Sync for ChunkStrategyError
impl Unpin for ChunkStrategyError
impl UnwindSafe for ChunkStrategyError
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