[][src]Type Definition reinda::GetError

type GetError = Error;

Error type for Assets::get, which is different for dev and prod builds.

In dev mode, all required files are loaded from file system when you call Assets::get. This can lead to errors (e.g. IO errors), so Assets::get returns a Result<_, Error>. As such, in dev mode, GetError is just an alias for Error.

In prod mode however, all files are loaded and prepared in Assets::new. The Assets::get method will never produce an error. Therefore, in prod mode, GetError is an alias to the never type, signaling that an error will never happen.