#[non_exhaustive]pub enum LoadFromLibraryError {
AlreadyLoaded,
LoadingSharedObjectFailed {
path: String,
error: Box<dyn Error>,
},
JNICreateJavaVmNotFound {
path: String,
error: Box<dyn Error>,
},
JNIGetCreatedJavaVMsNotFound {
path: String,
error: Box<dyn Error>,
},
}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.
Trait Implementations§
Source§impl Debug for LoadFromLibraryError
impl Debug for LoadFromLibraryError
Source§impl Display for LoadFromLibraryError
Available on crate feature loadjvm only.
impl Display for LoadFromLibraryError
Available on crate feature
loadjvm only.Source§impl Error for LoadFromLibraryError
Available on crate feature loadjvm only.
impl Error for LoadFromLibraryError
Available on crate feature
loadjvm 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<LoadFromLibraryError> for String
Available on crate feature loadjvm only.Provided for backwards compile-compat with ? operator,
all errors used to be just Strings,
which was perhaps not the wisest choice.
impl From<LoadFromLibraryError> for String
Available on crate feature
loadjvm 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: LoadFromLibraryError) -> Self
fn from(value: LoadFromLibraryError) -> 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.
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 LoadFromLibraryError
impl !Send for LoadFromLibraryError
impl !Sync for LoadFromLibraryError
impl !UnwindSafe for LoadFromLibraryError
impl Freeze for LoadFromLibraryError
impl Unpin for LoadFromLibraryError
impl UnsafeUnpin for LoadFromLibraryError
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