#[non_exhaustive]pub enum IcechunkFormatErrorKind {
Show 34 variants
VirtualReferenceError(VirtualReferenceErrorKind),
NodeNotFound {
path: Path,
},
ChunkCoordinatesNotFound {
coords: ChunkIndices,
},
SnapshotIdNotFound {
snapshot_id: SnapshotId,
},
BranchAlreadyExists {
branch: String,
snapshot_id: SnapshotId,
},
BranchNotFound {
branch: String,
},
TagAlreadyExists {
tag: String,
},
TagPreviouslyDeleted {
tag: String,
},
TagNotFound {
tag: String,
},
DuplicateSnapshotId {
snapshot_id: SnapshotId,
},
ManifestInfoNotFound {
manifest_id: ManifestId,
},
InvalidMagicNumbers,
InvalidIcechunkHeaderSize {
found: usize,
expected: usize,
},
InvalidNodeType {
found: u8,
max_supported: u8,
},
InvalidSpecVersion {
found: u8,
max_supported: u8,
},
UnsupportedOperationForVersion {
version: u8,
},
InvalidFileType {
expected: FileTypeBin,
got: u8,
},
UnknownFileType {
got: u8,
},
InvalidCompressionAlgorithm,
InvalidFlatBuffer(InvalidFlatbuffer),
DeserializationError(Box<Error>),
SerializationError(Box<Error>),
SerializationErrorFlexBuffers(Box<SerializationError>),
DeserializationErrorFlexBuffers(Box<DeserializationError>),
IO(Error),
Path(PathError),
InvalidTimestamp,
InvalidUpdateTimestamp {
latest_time: DateTime<Utc>,
new_time: DateTime<Utc>,
},
InvalidFeatureFlagName {
name: String,
},
InvalidFeatureFlagId {
id: u16,
},
FeatureFlagDisabled {
feature_description: String,
feature_flag: String,
},
MissingLocationCompressionDictionary,
InvalidArrayMetadata(String),
MissingRequiredField(String),
}Expand description
Format-level error types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VirtualReferenceError(VirtualReferenceErrorKind)
NodeNotFound
ChunkCoordinatesNotFound
Fields
§
coords: ChunkIndicesSnapshotIdNotFound
Fields
§
snapshot_id: SnapshotIdBranchAlreadyExists
BranchNotFound
TagAlreadyExists
TagPreviouslyDeleted
TagNotFound
DuplicateSnapshotId
Fields
§
snapshot_id: SnapshotIdManifestInfoNotFound
Fields
§
manifest_id: ManifestIdInvalidMagicNumbers
InvalidIcechunkHeaderSize
InvalidNodeType
InvalidSpecVersion
UnsupportedOperationForVersion
InvalidFileType
UnknownFileType
InvalidCompressionAlgorithm
InvalidFlatBuffer(InvalidFlatbuffer)
DeserializationError(Box<Error>)
SerializationError(Box<Error>)
SerializationErrorFlexBuffers(Box<SerializationError>)
DeserializationErrorFlexBuffers(Box<DeserializationError>)
IO(Error)
Path(PathError)
InvalidTimestamp
InvalidUpdateTimestamp
InvalidFeatureFlagName
InvalidFeatureFlagId
FeatureFlagDisabled
MissingLocationCompressionDictionary
InvalidArrayMetadata(String)
MissingRequiredField(String)
Trait Implementations§
Source§impl Debug for IcechunkFormatErrorKind
impl Debug for IcechunkFormatErrorKind
Source§impl Display for IcechunkFormatErrorKind
impl Display for IcechunkFormatErrorKind
Source§impl Error for IcechunkFormatErrorKind
impl Error for IcechunkFormatErrorKind
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<Box<DeserializationError>> for IcechunkFormatErrorKind
impl From<Box<DeserializationError>> for IcechunkFormatErrorKind
Source§fn from(source: Box<DeserializationError>) -> Self
fn from(source: Box<DeserializationError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<Error>> for IcechunkFormatErrorKind
impl From<Box<Error>> for IcechunkFormatErrorKind
Source§fn from(source: Box<SerializationError>) -> Self
fn from(source: Box<SerializationError>) -> Self
Converts to this type from the input type.
Source§impl From<Error> for IcechunkFormatErrorKind
impl From<Error> for IcechunkFormatErrorKind
Source§impl From<Infallible> for IcechunkFormatErrorKind
impl From<Infallible> for IcechunkFormatErrorKind
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidFlatbuffer> for IcechunkFormatErrorKind
impl From<InvalidFlatbuffer> for IcechunkFormatErrorKind
Source§fn from(source: InvalidFlatbuffer) -> Self
fn from(source: InvalidFlatbuffer) -> Self
Converts to this type from the input type.
Source§impl From<PathError> for IcechunkFormatErrorKind
impl From<PathError> for IcechunkFormatErrorKind
Source§impl From<VirtualReferenceErrorKind> for IcechunkFormatErrorKind
impl From<VirtualReferenceErrorKind> for IcechunkFormatErrorKind
Source§fn from(source: VirtualReferenceErrorKind) -> Self
fn from(source: VirtualReferenceErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IcechunkFormatErrorKind
impl !UnwindSafe for IcechunkFormatErrorKind
impl Freeze for IcechunkFormatErrorKind
impl Send for IcechunkFormatErrorKind
impl Sync for IcechunkFormatErrorKind
impl Unpin for IcechunkFormatErrorKind
impl UnsafeUnpin for IcechunkFormatErrorKind
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<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
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