#[non_exhaustive]pub enum MultiUuError {
MissingParts {
expected: u32,
present: Vec<u32>,
},
EmptyCollection,
DecodeError(UuError),
DuplicatePart {
part_number: u32,
},
}Expand description
Errors produced by multi-part UUencoding reassembly.
This enum is #[non_exhaustive]; new variants may be added in future
releases without a breaking change.
§Example
use uuencoding_multi::MultiUuError;
let err = MultiUuError::EmptyCollection;
assert!(err.to_string().contains("empty"));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingParts
One or more part numbers in 1..=expected are absent from the
collection. present lists the part numbers that were provided, in
ascending order.
EmptyCollection
reassemble() was called on a PartCollection
that contains no parts with part_number >= 1. A collection that holds
only a TOC part (part_number = 0) triggers this error.
DecodeError(UuError)
A UUdecode error was returned by the uuencoding crate while decoding
one of the part bodies. Reassembly stops at the first failing part.
DuplicatePart
Two calls to PartCollection::add provided
entries with the same part_number. The duplicate entry is rejected and
the collection is left unchanged.
Trait Implementations§
Source§impl Debug for MultiUuError
impl Debug for MultiUuError
Source§impl Display for MultiUuError
impl Display for MultiUuError
Source§impl Error for MultiUuError
impl Error for MultiUuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()