pub enum BamlSysError {
LibraryNotFound {
searched_paths: Vec<PathBuf>,
},
LoadFailed {
path: PathBuf,
source: Error,
},
SymbolNotFound {
symbol: &'static str,
source: Error,
},
VersionMismatch {
expected: String,
actual: String,
},
UnsupportedPlatform {
os: &'static str,
arch: &'static str,
},
CacheDir(String),
DownloadFailed(String),
ChecksumMismatch {
expected: String,
actual: String,
},
Io(Error),
AlreadyInitialized {
existing_path: PathBuf,
requested_path: PathBuf,
},
}Expand description
Errors that can occur during library loading.
Variants§
LibraryNotFound
Library file not found at any search path.
LoadFailed
Failed to load the dynamic library.
SymbolNotFound
Symbol not found in loaded library.
VersionMismatch
Version mismatch between Rust package and loaded library.
UnsupportedPlatform
Platform not supported.
CacheDir(String)
Failed to determine cache directory.
DownloadFailed(String)
Download failed.
ChecksumMismatch
Checksum mismatch after download.
Io(Error)
IO error.
AlreadyInitialized
Library already initialized with different path.
Trait Implementations§
Source§impl Debug for BamlSysError
impl Debug for BamlSysError
Source§impl Display for BamlSysError
impl Display for BamlSysError
Source§impl Error for BamlSysError
impl Error for BamlSysError
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()
Auto Trait Implementations§
impl Freeze for BamlSysError
impl !RefUnwindSafe for BamlSysError
impl Send for BamlSysError
impl Sync for BamlSysError
impl Unpin for BamlSysError
impl !UnwindSafe for BamlSysError
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