pub enum CopiaError {
Io(Error),
InvalidBlockSize(usize),
InvalidHashLength(usize),
InvalidCopyBounds {
offset: u64,
len: u32,
basis_size: u64,
},
ChecksumMismatch {
expected: [u8; 32],
actual: [u8; 32],
},
EmptySignature,
CorruptedDelta,
ProtocolError(String),
}Expand description
Errors that can occur during copia operations.
Variants§
Io(Error)
I/O error during read/write operations.
InvalidBlockSize(usize)
Invalid block size specified.
InvalidHashLength(usize)
Invalid strong hash length specified.
InvalidCopyBounds
Delta contains invalid copy bounds.
Fields
ChecksumMismatch
Checksum mismatch after patch application.
EmptySignature
Empty signature provided.
CorruptedDelta
Delta application failed due to corrupted data.
ProtocolError(String)
Protocol error during network operations.
Trait Implementations§
Source§impl Debug for CopiaError
impl Debug for CopiaError
Source§impl Display for CopiaError
impl Display for CopiaError
Source§impl Error for CopiaError
impl Error for CopiaError
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 !RefUnwindSafe for CopiaError
impl !UnwindSafe for CopiaError
impl Freeze for CopiaError
impl Send for CopiaError
impl Sync for CopiaError
impl Unpin for CopiaError
impl UnsafeUnpin for CopiaError
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