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§
source§impl Debug for TranslationBundleError
impl Debug for TranslationBundleError
source§impl Display for TranslationBundleError
impl Display for TranslationBundleError
source§impl Error for TranslationBundleError
impl Error for TranslationBundleError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<(FluentResource, Vec<ParserError, Global>)> for TranslationBundleError
impl From<(FluentResource, Vec<ParserError, Global>)> for TranslationBundleError
source§fn from((_, errs): (FluentResource, Vec<ParserError>)) -> Self
fn from((_, errs): (FluentResource, Vec<ParserError>)) -> Self
Converts to this type from the input type.
source§impl From<Vec<FluentError, Global>> for TranslationBundleError
impl From<Vec<FluentError, Global>> for TranslationBundleError
source§fn 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§
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