pub enum TemplateLoadingError {
IO(Error),
ViteManifestIO(Error),
ViteManifest(Error),
Translations(LoadError),
WalkDir(Error),
NonUtf8Path(FromPathError),
NonUtf8PathBuf(FromPathBufError),
InvalidPath(StripPrefixError),
Compile(Error),
Runtime(JoinError),
MissingTemplates {
missing: HashSet<String>,
loaded: HashSet<String>,
},
}
Expand description
There was an issue while loading the templates
Variants§
IO(Error)
I/O error
ViteManifestIO(Error)
Failed to read the assets manifest
ViteManifest(Error)
Failed to deserialize the assets manifest
Translations(LoadError)
Failed to load the translations
WalkDir(Error)
Failed to traverse the filesystem
NonUtf8Path(FromPathError)
Encountered non-UTF-8 path
NonUtf8PathBuf(FromPathBufError)
Encountered non-UTF-8 path
InvalidPath(StripPrefixError)
Encountered invalid path
Compile(Error)
Some templates failed to compile
Runtime(JoinError)
Could not join blocking task
MissingTemplates
There are essential templates missing
Trait Implementations§
source§impl Debug for TemplateLoadingError
impl Debug for TemplateLoadingError
source§impl Display for TemplateLoadingError
impl Display for TemplateLoadingError
source§impl Error for TemplateLoadingError
impl Error for TemplateLoadingError
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 TemplateLoadingError
impl From<Error> for TemplateLoadingError
source§impl From<Error> for TemplateLoadingError
impl From<Error> for TemplateLoadingError
source§impl From<Error> for TemplateLoadingError
impl From<Error> for TemplateLoadingError
source§impl From<Error> for TemplateLoadingError
impl From<Error> for TemplateLoadingError
source§impl From<FromPathBufError> for TemplateLoadingError
impl From<FromPathBufError> for TemplateLoadingError
source§fn from(source: FromPathBufError) -> Self
fn from(source: FromPathBufError) -> Self
Converts to this type from the input type.
source§impl From<FromPathError> for TemplateLoadingError
impl From<FromPathError> for TemplateLoadingError
source§fn from(source: FromPathError) -> Self
fn from(source: FromPathError) -> Self
Converts to this type from the input type.
source§impl From<JoinError> for TemplateLoadingError
impl From<JoinError> for TemplateLoadingError
source§impl From<LoadError> for TemplateLoadingError
impl From<LoadError> for TemplateLoadingError
source§impl From<StripPrefixError> for TemplateLoadingError
impl From<StripPrefixError> for TemplateLoadingError
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TemplateLoadingError
impl !RefUnwindSafe for TemplateLoadingError
impl Send for TemplateLoadingError
impl Sync for TemplateLoadingError
impl Unpin for TemplateLoadingError
impl !UnwindSafe for TemplateLoadingError
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more