pub enum I18nEmbedError {
ErrorParsingLocale(String, LanguageIdentifierError),
ErrorParsingFileUtf8(String, FromUtf8Error),
RequestedLanguagesEmpty,
LanguageNotAvailable(String, LanguageIdentifier),
Multiple(Vec<I18nEmbedError>),
Gettext(Error),
Notify(NotifyError),
DirectoryDoesNotExist(PathBuf),
PathIsNotDirectory(PathBuf),
}Expand description
An error that occurs in this library.
Variants§
ErrorParsingLocale(String, LanguageIdentifierError)
ErrorParsingFileUtf8(String, FromUtf8Error)
RequestedLanguagesEmpty
LanguageNotAvailable(String, LanguageIdentifier)
Multiple(Vec<I18nEmbedError>)
Gettext(Error)
Notify(NotifyError)
DirectoryDoesNotExist(PathBuf)
PathIsNotDirectory(PathBuf)
Trait Implementations§
Source§impl Debug for I18nEmbedError
impl Debug for I18nEmbedError
Source§impl Display for I18nEmbedError
impl Display for I18nEmbedError
Source§impl Error for I18nEmbedError
impl Error for I18nEmbedError
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<Error> for I18nEmbedError
Available on crate feature autoreload only.
impl From<Error> for I18nEmbedError
Available on crate feature
autoreload only.Source§impl From<Error> for I18nEmbedError
impl From<Error> for I18nEmbedError
Source§impl From<NotifyError> for I18nEmbedError
impl From<NotifyError> for I18nEmbedError
Source§fn from(source: NotifyError) -> Self
fn from(source: NotifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for I18nEmbedError
impl !RefUnwindSafe for I18nEmbedError
impl Send for I18nEmbedError
impl Sync for I18nEmbedError
impl Unpin for I18nEmbedError
impl !UnwindSafe for I18nEmbedError
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