#[non_exhaustive]pub enum FileProblem {
Show 16 variants
OutOfRange {
got: u64,
min: u64,
max: u64,
bound: Bound,
},
NotInSet {
got: u64,
allowed: AllowedSet,
bound: Bound,
},
NotRequiredValue {
got: u64,
required: u64,
bound: Bound,
},
Disagrees {
got: u64,
expected: u64,
with: FileField,
},
DigestMismatch {
got: u64,
hash: HashAlgorithm,
},
Truncated {
have: u64,
need: u64,
},
OutOfBounds {
offset: u64,
len: u64,
end: u64,
},
Unreadable {
offset: u64,
},
Missing,
Duplicate,
Overlaps,
Unterminated,
FlagClear,
BadSignature,
OutOfOrder {
after_record: u16,
},
Unrecognized {
got: u64,
},
}crypto-ops only.Expand description
What Error::BadParameters, Error::InvariantViolated and
Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file
chose. Exported for the same reason as the two above: a caller matches on them.
What Error::BadParameters, Error::InvariantViolated and
Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file
chose. Exported for the same reason as the two above: a caller matches on them.
What Error::BadParameters, Error::InvariantViolated and
Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file
chose. Exported for the same reason as the two above: a caller matches on them.
What is wrong with a FileField. Integers and closed enums only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfRange
Outside an inclusive range.
Fields
NotInSet
Not one of a closed set of values.
Fields
allowed: AllowedSetThe values allowed.
NotRequiredValue
Not the one value allowed.
Fields
Disagrees
Disagrees with another value the file declares or holds.
Fields
DigestMismatch
A length or bit count the named hash cannot produce or take.
Truncated
Fewer bytes than the structure needs.
OutOfBounds
An extent runs past the end of what holds it.
Unreadable
Cannot be read where it starts: no whole header, or a length past the end.
Missing
Required and absent.
Duplicate
Present more than once where the format allows one.
Overlaps
Overlaps another extent.
Unterminated
A string that is not terminated.
FlagClear
A flag the format requires is clear.
BadSignature
A signature or identifier is not the format’s.
OutOfOrder
In the wrong place in a sequence.
Unrecognized
A value the format does not define.