pub struct Distribution { /* private fields */ }Implementations§
Source§impl Distribution
impl Distribution
pub async fn from_providers<O>(providers: Vec<Arc<dyn RuntimeProvider>>) -> Owhere
O: FromIterator<Self>,
pub fn matches_java_major_version(&self, major_version: usize) -> bool
pub fn java_major_version(&self) -> Option<usize>
pub fn release(&self) -> Option<&DistributionReleaseData>
pub fn path(&self) -> &Path
pub fn provider(&self) -> &'static str
pub fn executable(&self) -> PathBuf
Sourcepub fn executablew(&self) -> Option<PathBuf>
pub fn executablew(&self) -> Option<PathBuf>
Windowed executable used to start a game process.
On Windows java.exe opens a console window that stays attached to the
game, while javaw.exe starts the same JVM without a console. Returns
None when the runtime has no windowed executable, including on
platforms other than Windows. Probes and installer processors must keep
using Self::executable because they read the JVM’s stdout/stderr.
pub fn require_compatible( &self, required_major_version: usize, validation_mode: RuntimeValidationMode, ) -> Result<()>
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
Auto Trait Implementations§
impl Forget for Distribution
impl Freeze for Distribution
impl Move for Distribution
impl RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distributionwhere
RawVecInner: Sync,
impl Unpin for Distribution
impl UnsafeUnpin for Distribution
impl UnwindSafe for Distribution
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