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),
}
Variants§
MissingFileId
InvalidChunkIndex
MissingChunkIndex
InvalidTotalChunks
MissingTotalChunks
MissingFileName
EmptyChunkData
IndexOutOfBounds(usize, usize)
Merge
CreateDirectory(String)
CreateChunkFile(String)
WriteChunk(String)
CreateOutputFile(String)
ReadChunk(String)
WriteOutput(String)
Trait Implementations§
Source§impl Debug for ChunkStrategyError
impl Debug for ChunkStrategyError
Source§impl Display for ChunkStrategyError
impl Display for ChunkStrategyError
Source§impl Error for ChunkStrategyError
impl Error for ChunkStrategyError
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