pub enum DatasetError {
Download {
url: &'static str,
source: Error,
},
Io {
path: PathBuf,
source: Error,
},
Format {
dataset_id: &'static str,
line_number: usize,
message: String,
},
InvalidSelection {
dataset_id: &'static str,
message: String,
},
}Expand description
Errors raised while fetching and materializing datasets.
Variants§
Download
The HTTP download failed.
Io
The on-disk materialization step failed.
Format
The dataset contents did not match the expected record layout.
Fields
InvalidSelection
The requested dataset subset is not valid.
Trait Implementations§
Source§impl Debug for DatasetError
impl Debug for DatasetError
Source§impl Display for DatasetError
impl Display for DatasetError
Source§impl Error for DatasetError
impl Error for DatasetError
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 DatasetError
impl !UnwindSafe for DatasetError
impl Freeze for DatasetError
impl Send for DatasetError
impl Sync for DatasetError
impl Unpin for DatasetError
impl UnsafeUnpin for DatasetError
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> CliqueRankerExt for T
impl<T> CliqueRankerExt for T
Source§fn then<R>(self, other: R) -> ChainedRanker<Self, R>
fn then<R>(self, other: R) -> ChainedRanker<Self, R>
Chains this ranker with another. The first ranker breaks ties first;
the second ranker is consulted only when the first returns
Equal.