#[non_exhaustive]pub enum ParseXmlKeyFileError {
EmptyKey,
Encoding(EncodingError),
Xml(Error),
}Expand description
Errors that can occur when parsing an XML keyfile
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyKey
No key data element was found in the XML keyfile
Encoding(EncodingError)
A tag in the XML keyfile contains text that cannot be decoded as UTF-8
Xml(Error)
An error occurred while reading the XML keyfile
Trait Implementations§
Source§impl Debug for ParseXmlKeyFileError
impl Debug for ParseXmlKeyFileError
Source§impl Display for ParseXmlKeyFileError
impl Display for ParseXmlKeyFileError
Source§impl Error for ParseXmlKeyFileError
impl Error for ParseXmlKeyFileError
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<EncodingError> for ParseXmlKeyFileError
impl From<EncodingError> for ParseXmlKeyFileError
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ParseXmlKeyFileError
impl !UnwindSafe for ParseXmlKeyFileError
impl Freeze for ParseXmlKeyFileError
impl Send for ParseXmlKeyFileError
impl Sync for ParseXmlKeyFileError
impl Unpin for ParseXmlKeyFileError
impl UnsafeUnpin for ParseXmlKeyFileError
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