pub enum NamedEntryError {
Blank {
record: String,
},
Restated {
record: String,
key: NonBlankString,
},
}Expand description
A source property the reader could not key.
A blank key names nothing, so the entry it carries cannot be asked for. A restated key names an entry that is already keyed, so the second value has nowhere to go. Either way the value is still source content, so the reader states the property it could not key instead of dropping it without a word.
Variants§
Blank
The key holds no non-whitespace character.
Restated
The record states this key a second time.
Fields
§
key: NonBlankStringThe key the record states twice.
Trait Implementations§
Source§impl Clone for NamedEntryError
impl Clone for NamedEntryError
Source§impl Debug for NamedEntryError
impl Debug for NamedEntryError
Source§impl Display for NamedEntryError
impl Display for NamedEntryError
impl Eq for NamedEntryError
Source§impl Error for NamedEntryError
impl Error for NamedEntryError
1.30.0 · 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<NamedEntryError> for CodecError
A source property whose key names nothing, or whose key the record already
states, is an inconsistency inside the bytes that are present, so a reader
that refuses the whole property set reports it as a malformed container.
impl From<NamedEntryError> for CodecError
A source property whose key names nothing, or whose key the record already states, is an inconsistency inside the bytes that are present, so a reader that refuses the whole property set reports it as a malformed container.
Source§fn from(refused: NamedEntryError) -> Self
fn from(refused: NamedEntryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NamedEntryError
impl PartialEq for NamedEntryError
impl StructuralPartialEq for NamedEntryError
Auto Trait Implementations§
impl Freeze for NamedEntryError
impl RefUnwindSafe for NamedEntryError
impl Send for NamedEntryError
impl Sync for NamedEntryError
impl Unpin for NamedEntryError
impl UnsafeUnpin for NamedEntryError
impl UnwindSafe for NamedEntryError
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