Enum dicom_encoding::decode::Error [−][src]
#[non_exhaustive]
pub enum Error {
ReadHeaderTag {
backtrace: Option<Backtrace>,
source: Error,
},
ReadItemHeader {
backtrace: Backtrace,
source: Error,
},
ReadItemLength {
backtrace: Backtrace,
source: Error,
},
ReadTag {
backtrace: Backtrace,
source: Error,
},
ReadReserved {
backtrace: Backtrace,
source: Error,
},
ReadLength {
backtrace: Backtrace,
source: Error,
},
ReadVr {
backtrace: Backtrace,
source: Error,
},
BadSequenceHeader {
source: SequenceItemHeaderError,
},
}Expand description
Module-level error type: for errors which may occur while decoding DICOM data.
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.
Fields of BadSequenceHeader
source: SequenceItemHeaderErrorTrait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more