Enum stream_unzip::Error
source · pub enum Error {
Format(FormatError),
BadHeader,
IO(Error),
}
Expand description
Any zip-related error, from invalid archives to encoding problems.
Variants§
Format(FormatError)
Not a valid zip file, or a variant that is unsupported.
BadHeader
Bad header format
IO(Error)
I/O-related error
Only returned by the higher-level API, since ArchiveReader lets you do your own I/O.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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 From<FormatError> for Error
impl From<FormatError> for Error
source§fn from(e: FormatError) -> Self
fn from(e: FormatError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(_: TryFromSliceError) -> Self
fn from(_: TryFromSliceError) -> Self
Converts to this type from the input type.