pub enum TextDomainError {
InvalidLocale(String),
TranslationNotFound(String),
TextDomainCallFailed(Error),
BindTextDomainCallFailed(Error),
BindTextDomainCodesetCallFailed(Error),
}
Expand description
Errors that might come up after running the builder.
Variants§
InvalidLocale(String)
The locale is malformed.
TranslationNotFound(String)
The translation for the requested language could not be found or the search path is empty.
TextDomainCallFailed(Error)
The call to textdomain()
failed.
BindTextDomainCallFailed(Error)
The call to bindtextdomain()
failed.
BindTextDomainCodesetCallFailed(Error)
The call to bind_textdomain_codeset()
failed.
Trait Implementations§
source§impl Debug for TextDomainError
impl Debug for TextDomainError
source§impl Display for TextDomainError
impl Display for TextDomainError
source§impl Error for TextDomainError
impl Error for TextDomainError
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()
Auto Trait Implementations§
impl Freeze for TextDomainError
impl !RefUnwindSafe for TextDomainError
impl Send for TextDomainError
impl Sync for TextDomainError
impl Unpin for TextDomainError
impl !UnwindSafe for TextDomainError
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