#[non_exhaustive]pub enum LoadFromJavaHomeError {
AlreadyLoaded,
LoadingSharedObjectFailed {
path: String,
error: Box<dyn Error>,
},
JNICreateJavaVmNotFound {
path: String,
error: Box<dyn Error>,
},
JNIGetCreatedJavaVMsNotFound {
path: String,
error: Box<dyn Error>,
},
UnknownJavaHomeLayout,
IOError(Error),
EnvironmentVariableError(VarError),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlreadyLoaded
The dynamic linker has already loaded the jvm.
The dynamic linker failed to load the jvm shared object.
JNICreateJavaVmNotFound
The dynamic linker could not find the JNI_CreateJavaVM symbol in the shared object.
Fields
JNIGetCreatedJavaVMsNotFound
The dynamic linker could not find the JNI_GetCreatedJavaVMs symbol in the shared object.
Fields
UnknownJavaHomeLayout
The layout of the java installation was not recognized.
IOError(Error)
I/O Error while determining the layout of the java installation.
EnvironmentVariableError(VarError)
The environment variable JAVA_HOME is invalid
Trait Implementations§
Source§impl Debug for LoadFromJavaHomeError
impl Debug for LoadFromJavaHomeError
Source§impl Display for LoadFromJavaHomeError
Available on crate features loadjvm and std only.
impl Display for LoadFromJavaHomeError
Available on crate features
loadjvm and std only.Source§impl Error for LoadFromJavaHomeError
Available on crate features loadjvm and std only.
impl Error for LoadFromJavaHomeError
Available on crate features
loadjvm and std only.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()
Source§impl From<LoadFromJavaHomeError> for String
Available on crate features loadjvm and std only.Provided for backwards compile-compat with ? operator,
all errors used to be just Strings,
which was perhaps not the wisest choice.
impl From<LoadFromJavaHomeError> for String
Available on crate features
loadjvm and std only.Provided for backwards compile-compat with ? operator, all errors used to be just Strings, which was perhaps not the wisest choice.
Source§fn from(value: LoadFromJavaHomeError) -> Self
fn from(value: LoadFromJavaHomeError) -> Self
Converts to this type from the input type.
Source§impl From<LoadFromJavaHomeFolderError> for LoadFromJavaHomeError
Available on crate features loadjvm and std only.
impl From<LoadFromJavaHomeFolderError> for LoadFromJavaHomeError
Available on crate features
loadjvm and std only.Source§fn from(value: LoadFromJavaHomeFolderError) -> Self
fn from(value: LoadFromJavaHomeFolderError) -> Self
Converts to this type from the input type.
Source§impl From<LoadFromLibraryError> for LoadFromJavaHomeError
Available on crate features loadjvm and std only.
impl From<LoadFromLibraryError> for LoadFromJavaHomeError
Available on crate features
loadjvm and std only.Source§fn from(value: LoadFromLibraryError) -> Self
fn from(value: LoadFromLibraryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadFromJavaHomeError
impl !Send for LoadFromJavaHomeError
impl !Sync for LoadFromJavaHomeError
impl !UnwindSafe for LoadFromJavaHomeError
impl Freeze for LoadFromJavaHomeError
impl Unpin for LoadFromJavaHomeError
impl UnsafeUnpin for LoadFromJavaHomeError
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