pub enum LoaderError {
Show 15 variants
ChildProcessFailed {
verb: String,
source: CalledProcessError,
},
TreeSitterNotFound(Error),
CannotMakeDirectoryForDownload {
source: Error,
url: String,
dest_path: PathBuf,
},
GitHasWrongRemote {
repo_path: PathBuf,
desired_repo_url: String,
existing_repo_url: OsString,
},
GitHeadIsInvalid {
repo_path: PathBuf,
head: Vec<u8>,
},
CannotMakeDirectoryForTarball {
err: Error,
tarball_path: PathBuf,
},
ExpectedHashIsInvalid {
err: Error,
tarball_url: String,
expected_sha256hex: String,
},
TarballIsUnreadable {
err: Error,
tarball_path: PathBuf,
},
TarballHasWrongHash {
tarball_url: String,
expected_hash: String,
recomputed_hash: String,
},
DllIsUnreadable {
dll_path: OsString,
source: Error,
},
DllSymbolIsMissing {
source: Error,
dll_path: OsString,
symbol_name: String,
},
CannotFindAppDirectory {
source: Box<dyn DebuggableDisplayable>,
},
CompileFailed {
source: Box<dyn DebuggableDisplayable>,
src_path: PathBuf,
},
LanguageWasNotBuiltIn(String),
NotAllowedToDownload(String),
}Variants§
ChildProcessFailed
TreeSitterNotFound(Error)
CannotMakeDirectoryForDownload
GitHasWrongRemote
GitHeadIsInvalid
CannotMakeDirectoryForTarball
ExpectedHashIsInvalid
TarballIsUnreadable
TarballHasWrongHash
DllIsUnreadable
DllSymbolIsMissing
CannotFindAppDirectory
CompileFailed
LanguageWasNotBuiltIn(String)
NotAllowedToDownload(String)
Trait Implementations§
Source§impl Debug for LoaderError
impl Debug for LoaderError
Source§impl From<LoaderError> for SinglePassError
impl From<LoaderError> for SinglePassError
Source§fn from(v: LoaderError) -> SinglePassError
fn from(v: LoaderError) -> SinglePassError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoaderError
impl !RefUnwindSafe for LoaderError
impl !Send for LoaderError
impl !Sync for LoaderError
impl Unpin for LoaderError
impl !UnwindSafe for LoaderError
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more