pub enum Error {
Show 17 variants
Io(Error),
Zip(ZipError),
Json(Error),
Http(Box<Error>),
Tiff(TiffError),
Encode(Error),
Utz(Error),
UnknownDataset {
ds: String,
},
NoReleaseRedirect {
status: u16,
},
NoGeojsonEntry {
path: PathBuf,
},
NoFilename {
url: String,
},
NoTif {
zip: PathBuf,
},
MissingGeotransform,
BadSampleFormat {
format: String,
},
BadSidecar(&'static str),
NoOutDir,
Msg(String),
}Expand description
Anything that can fail while fetching sources or generating an asset.
Variants§
Io(Error)
File or network I/O.
Zip(ZipError)
A downloaded source archive would not unzip.
Json(Error)
Source GeoJSON would not parse.
Http(Box<Error>)
An HTTP failure. The error is boxed because ureq::Error is
large.
Tiff(TiffError)
Encode(Error)
Utz(Error)
Available on crate feature
utz-error only.UnknownDataset
NoReleaseRedirect
NoGeojsonEntry
NoFilename
NoTif
MissingGeotransform
BadSampleFormat
BadSidecar(&'static str)
NoOutDir
Msg(String)
A one-off message from the utz_dev_cli measurement tools.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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