pub enum PartialZipError {
InvalidUrl,
FileNotFound,
RangeNotSupported,
UnsupportedCompression(u16),
ZipRsError(ZipError),
IOError(Error),
CURLError(Error),
NoError(NoError),
ConvError(PosOverflow<u64>),
}Expand description
Enum for errors thrown by the partialzip crate
Variants§
InvalidUrl
The URL is invalid
FileNotFound
The file is not found
RangeNotSupported
Range request not supported
UnsupportedCompression(u16)
The compression scheme is currently not supported
ZipRsError(ZipError)
Error for the underlying zip crate
IOError(Error)
std::io::Error wrapper
CURLError(Error)
Error for CURL
NoError(NoError)
NoError error
ConvError(PosOverflow<u64>)
Conversion Error
Trait Implementations§
Source§impl Debug for PartialZipError
impl Debug for PartialZipError
Source§impl Display for PartialZipError
impl Display for PartialZipError
Source§impl Error for PartialZipError
impl Error for PartialZipError
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 From<Error> for PartialZipError
impl From<Error> for PartialZipError
Source§impl From<Error> for PartialZipError
impl From<Error> for PartialZipError
Source§impl From<NoError> for PartialZipError
impl From<NoError> for PartialZipError
Source§impl From<PosOverflow<u64>> for PartialZipError
impl From<PosOverflow<u64>> for PartialZipError
Source§fn from(source: PosOverflow<u64>) -> Self
fn from(source: PosOverflow<u64>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PartialZipError
impl !RefUnwindSafe for PartialZipError
impl Send for PartialZipError
impl Sync for PartialZipError
impl Unpin for PartialZipError
impl !UnwindSafe for PartialZipError
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.