Enum phonenumber::MetadataError
source · pub enum MetadataError {
UnexpectedEof,
MismatchedTag(String),
MissingValue {
phase: String,
name: String,
},
UnhandledElement {
phase: String,
name: String,
},
UnhandledAttribute {
phase: String,
name: String,
value: String,
},
UnhandledEvent {
phase: String,
event: String,
},
}
Expand description
Metadata loading errors.
Variants§
UnexpectedEof
EOF was reached before the parsing was complete.
MismatchedTag(String)
A mismatched tag was met.
MissingValue
A required value was missing.
UnhandledElement
An element was not handled.
UnhandledAttribute
An attribute was not handled.
UnhandledEvent
An event was not handled.
Trait Implementations§
source§impl Error for Metadata
impl Error for Metadata
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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