pub struct CorruptDataError;
Expand description
The data is corrupt and doesn’t present a valid Tar archive. Reasons for that are:
- the data is empty
- the data is not a multiple of 512 (the BLOCKSIZE)
- the data is not at least
MIN_BLOCK_COUNT
blocks long
Trait Implementations§
Source§impl Clone for CorruptDataError
impl Clone for CorruptDataError
Source§fn clone(&self) -> CorruptDataError
fn clone(&self) -> CorruptDataError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CorruptDataError
impl Debug for CorruptDataError
Source§impl Display for CorruptDataError
impl Display for CorruptDataError
Source§impl Error for CorruptDataError
impl Error for CorruptDataError
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()
Source§impl PartialEq for CorruptDataError
impl PartialEq for CorruptDataError
impl Copy for CorruptDataError
impl Eq for CorruptDataError
impl StructuralPartialEq for CorruptDataError
Auto Trait Implementations§
impl Freeze for CorruptDataError
impl RefUnwindSafe for CorruptDataError
impl Send for CorruptDataError
impl Sync for CorruptDataError
impl Unpin for CorruptDataError
impl UnwindSafe for CorruptDataError
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