#[derive(Copy, Clone, Debug, PartialEq, PartialOrd, Eq, Ord)]
pub enum OptParseError {
UnexpectedEndOfStream,
#[allow(missing_docs)]
OptionValueTooLong { capacity: usize, actual: usize },
TooManyOptions(usize),
OptionDeltaReservedValue(u8),
ValueLengthReservedValue(u8),
OptionsExhausted,
}
impl OptParseError {
pub fn eof() -> Self {
Self::UnexpectedEndOfStream
}
}