Struct tar_no_std::CorruptDataError
source · 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)
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)>
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
source§fn eq(&self, other: &CorruptDataError) -> bool
fn eq(&self, other: &CorruptDataError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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