pub enum ZoomError {
Show 18 variants
Networking {
source: Error,
},
Dezoomer {
source: DezoomerError,
},
NoLevels,
NoTile,
PartialDownload {
successful_tiles: u64,
total_tiles: u64,
destination: String,
},
Image {
source: ImageError,
},
PostProcessing {
source: Box<dyn Error>,
},
Io {
source: Error,
},
Yaml {
source: Error,
},
TileCopyError {
x: u32,
y: u32,
twidth: u32,
theight: u32,
width: u32,
height: u32,
},
MalformedTileStr {
tile_str: String,
},
NoSuchDezoomer {
name: String,
},
InvalidHeaderName {
source: InvalidHeaderName,
},
InvalidHeaderValue {
source: InvalidHeaderValue,
},
AsyncError {
source: JoinError,
},
BufferToImage {
source: BufferToImageError,
},
WriteError {
source: SendError<TileBufferMsg>,
},
PngError {
source: EncodingError,
},
}Variants§
Networking
Dezoomer
Fields
§
source: DezoomerErrorNoLevels
NoTile
PartialDownload
Image
Fields
§
source: ImageErrorPostProcessing
Io
Yaml
TileCopyError
MalformedTileStr
NoSuchDezoomer
InvalidHeaderName
Fields
§
source: InvalidHeaderNameInvalidHeaderValue
Fields
§
source: InvalidHeaderValueAsyncError
BufferToImage
Fields
§
source: BufferToImageErrorWriteError
PngError
Fields
§
source: EncodingErrorTrait Implementations§
Source§impl Error for ZoomError
impl Error for ZoomError
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<DezoomerError> for ZoomError
impl From<DezoomerError> for ZoomError
Source§fn from(source: DezoomerError) -> Self
fn from(source: DezoomerError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for ZoomError
impl From<EncodingError> for ZoomError
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for ZoomError
impl From<ImageError> for ZoomError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for ZoomError
impl From<InvalidHeaderName> for ZoomError
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for ZoomError
impl From<InvalidHeaderValue> for ZoomError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZoomError
impl !RefUnwindSafe for ZoomError
impl !Send for ZoomError
impl !Sync for ZoomError
impl Unpin for ZoomError
impl !UnwindSafe for ZoomError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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