#[non_exhaustive]pub enum LoadFromJavaHomeFolderError {
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),
}Expand description
TODO DOCU
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.
Trait Implementations§
Source§impl Debug for LoadFromJavaHomeFolderError
impl Debug for LoadFromJavaHomeFolderError
Source§impl Display for LoadFromJavaHomeFolderError
Available on crate features loadjvm and std only.
impl Display for LoadFromJavaHomeFolderError
Available on crate features
loadjvm and std only.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<LoadFromJavaHomeFolderError> 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<LoadFromJavaHomeFolderError> 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: LoadFromJavaHomeFolderError) -> Self
fn from(value: LoadFromJavaHomeFolderError) -> Self
Converts to this type from the input type.
Source§impl From<LoadFromLibraryError> for LoadFromJavaHomeFolderError
Available on crate features loadjvm and std only.
impl From<LoadFromLibraryError> for LoadFromJavaHomeFolderError
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 LoadFromJavaHomeFolderError
impl !Send for LoadFromJavaHomeFolderError
impl !Sync for LoadFromJavaHomeFolderError
impl !UnwindSafe for LoadFromJavaHomeFolderError
impl Freeze for LoadFromJavaHomeFolderError
impl Unpin for LoadFromJavaHomeFolderError
impl UnsafeUnpin for LoadFromJavaHomeFolderError
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