LoaderError

Enum LoaderError 

Source
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

Fields

§verb: String
§source: CalledProcessError
§

TreeSitterNotFound(Error)

§

CannotMakeDirectoryForDownload

Fields

§source: Error
§dest_path: PathBuf
§

GitHasWrongRemote

Fields

§repo_path: PathBuf
§desired_repo_url: String
§existing_repo_url: OsString
§

GitHeadIsInvalid

Fields

§repo_path: PathBuf
§head: Vec<u8>
§

CannotMakeDirectoryForTarball

Fields

§err: Error
§tarball_path: PathBuf
§

ExpectedHashIsInvalid

Fields

§err: Error
§tarball_url: String
§expected_sha256hex: String
§

TarballIsUnreadable

Fields

§err: Error
§tarball_path: PathBuf
§

TarballHasWrongHash

Fields

§tarball_url: String
§expected_hash: String
§recomputed_hash: String
§

DllIsUnreadable

Fields

§dll_path: OsString
§source: Error
§

DllSymbolIsMissing

Fields

§source: Error
§dll_path: OsString
§symbol_name: String
§

CannotFindAppDirectory

Fields

§source: Box<dyn DebuggableDisplayable>
§

CompileFailed

Fields

§source: Box<dyn DebuggableDisplayable>
§src_path: PathBuf
§

LanguageWasNotBuiltIn(String)

§

NotAllowedToDownload(String)

Trait Implementations§

Source§

impl Debug for LoaderError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<LoaderError> for SinglePassError

Source§

fn from(v: LoaderError) -> SinglePassError

Converts to this type from the input type.
Source§

impl Display for LoaderError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> ErasedDestructor for T
where T: 'static,