pub struct LoadError {
pub tried: Vec<String>,
pub io: Option<Error>,
}Expand description
Why a Loader could not supply a template.
io is None when no root has the file: the template is missing, and
tried lists every path looked at. io is Some when a file was found
but could not be used: it can’t be read, isn’t UTF-8, or resolves
outside the loader’s roots.
Fields§
§tried: Vec<String>§io: Option<Error>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Forget for LoadError
impl Freeze for LoadError
impl Move for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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