pub enum FomodError {
Xml(DeError),
MissingElement(&'static str),
InvalidAttribute {
attr: &'static str,
value: String,
},
UnsupportedVersion(String),
Declarative(DeclarativeError),
}Variants§
Xml(DeError)
MissingElement(&'static str)
InvalidAttribute
UnsupportedVersion(String)
Declarative(DeclarativeError)
Trait Implementations§
Source§impl Debug for FomodError
impl Debug for FomodError
Source§impl Display for FomodError
impl Display for FomodError
Source§impl Error for FomodError
impl Error for FomodError
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<DeError> for FomodError
impl From<DeError> for FomodError
Source§impl From<DeclarativeError> for FomodError
impl From<DeclarativeError> for FomodError
Source§fn from(source: DeclarativeError) -> Self
fn from(source: DeclarativeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FomodError
impl !RefUnwindSafe for FomodError
impl Send for FomodError
impl Sync for FomodError
impl Unpin for FomodError
impl UnsafeUnpin for FomodError
impl !UnwindSafe for FomodError
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