#[non_exhaustive]pub enum ExternalDataReason {
FeatureNotEnabled {
feature: &'static str,
mime: Option<String>,
},
FileMissing,
PathMissing(String),
UuidMismatch {
expected: String,
found: String,
},
Backend(String),
ShapeDisagrees {
promised: i64,
held: usize,
},
}Expand description
Why an array could not be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FeatureNotEnabled
The support for this format is not compiled in.
A capability that is missing, not data that is absent - the caller must be able to tell the two apart, which is why this is not a plain “not found”. Enable the matching feature, or supply the file yourself.
Fields
FileMissing
The file is named by the package but nothing was found under that name.
PathMissing(String)
The file was found but the dataset path inside it was not.
UuidMismatch
The file identifies itself with a different uuid than the package says.
The EPC specification requires an HDF5 file to carry, at its root, a
uuid attribute equal to that of its EpcExternalPartReference. A
mismatch means this is somebody else’s file.
Backend(String)
The backend failed for a reason of its own.
ShapeDisagrees
The shape and the values of an array being written disagree.
Checked before the backend is asked, because a shape that promises more numbers than there are writes without error in some formats and reads back with zeros at the end - plausible values that nothing flags. Both counts are named: it is their difference that says what to fix.
Trait Implementations§
Source§impl Clone for ExternalDataReason
impl Clone for ExternalDataReason
Source§impl Debug for ExternalDataReason
impl Debug for ExternalDataReason
Source§impl Display for ExternalDataReason
impl Display for ExternalDataReason
impl Eq for ExternalDataReason
Source§impl PartialEq for ExternalDataReason
impl PartialEq for ExternalDataReason
impl StructuralPartialEq for ExternalDataReason
Auto Trait Implementations§
impl Freeze for ExternalDataReason
impl RefUnwindSafe for ExternalDataReason
impl Send for ExternalDataReason
impl Sync for ExternalDataReason
impl Unpin for ExternalDataReason
impl UnsafeUnpin for ExternalDataReason
impl UnwindSafe for ExternalDataReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.