pub enum TranslationBundleError {
ReadFtl(Error),
ParseFtl(ParserError),
AddResource(FluentError),
MissingLocale,
ReadLocalesDir(Error),
ReadLocalesDirEntry(Error),
LocaleIsNotDir,
}
Variants
ReadFtl(Error)
Failed to read from .ftl
file.
ParseFtl(ParserError)
Failed to parse contents of .ftl
file.
AddResource(FluentError)
Failed to add FluentResource
to FluentBundle
.
MissingLocale
$sysroot/share/locale/$locale
does not exist.
ReadLocalesDir(Error)
Cannot read directory entries of $sysroot/share/locale/$locale
.
ReadLocalesDirEntry(Error)
Cannot read directory entry of $sysroot/share/locale/$locale
.
LocaleIsNotDir
$sysroot/share/locale/$locale
is not a directory.
Trait Implementations
sourceimpl Debug for TranslationBundleError
impl Debug for TranslationBundleError
sourceimpl Display for TranslationBundleError
impl Display for TranslationBundleError
sourceimpl Error for TranslationBundleError
impl Error for TranslationBundleError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<(FluentResource, Vec<ParserError, Global>)> for TranslationBundleError
impl From<(FluentResource, Vec<ParserError, Global>)> for TranslationBundleError
sourcefn from((_, errs): (FluentResource, Vec<ParserError>)) -> Self
fn from((_, errs): (FluentResource, Vec<ParserError>)) -> Self
Converts to this type from the input type.
sourceimpl From<Vec<FluentError, Global>> for TranslationBundleError
impl From<Vec<FluentError, Global>> for TranslationBundleError
sourcefn from(errs: Vec<FluentError>) -> Self
fn from(errs: Vec<FluentError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TranslationBundleError
impl Send for TranslationBundleError
impl Sync for TranslationBundleError
impl Unpin for TranslationBundleError
impl !UnwindSafe for TranslationBundleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes
Size for each variant:
ReadFtl
: 16 bytesParseFtl
: 80 bytesAddResource
: 80 bytesMissingLocale
: 0 bytesReadLocalesDir
: 16 bytesReadLocalesDirEntry
: 16 bytesLocaleIsNotDir
: 0 bytes