pub enum JavaEvent {
JavaNotFound {
distribution: String,
version: u8,
},
JavaAlreadyInstalled {
distribution: String,
version: u8,
binary_path: String,
},
JavaDownloadStarted {
distribution: String,
version: u8,
total_bytes: u64,
},
JavaDownloadProgress {
bytes: u64,
},
JavaDownloadCompleted {
distribution: String,
version: u8,
},
JavaExtractionStarted {
distribution: String,
version: u8,
},
JavaExtractionProgress {
files_extracted: usize,
total_files: usize,
},
JavaExtractionCompleted {
distribution: String,
version: u8,
binary_path: String,
},
}Expand description
Java (JRE) events
Variants§
JavaNotFound
JRE not installed
JavaAlreadyInstalled
JRE already installed (skip download)
JavaDownloadStarted
JRE download started
JavaDownloadProgress
JRE download progress
JavaDownloadCompleted
JRE download completed
JavaExtractionStarted
JRE extraction started
JavaExtractionProgress
JRE extraction progress
JavaExtractionCompleted
JRE extraction completed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JavaEvent
impl<'de> Deserialize<'de> for JavaEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JavaEvent
impl RefUnwindSafe for JavaEvent
impl Send for JavaEvent
impl Sync for JavaEvent
impl Unpin for JavaEvent
impl UnwindSafe for JavaEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)