pub struct LaunchConfig {
pub username: String,
pub uuid: String,
pub java_distribution: JavaDistribution,
}Expand description
Launch configuration
Configure these parameters once and reuse them across all launches.
Fields§
§username: StringUsername for authentication
uuid: StringPlayer UUID (with dashes)
java_distribution: JavaDistributionJava distribution to use
Implementations§
Source§impl LaunchConfig
impl LaunchConfig
Sourcepub fn new(
username: impl Into<String>,
uuid: impl Into<String>,
java_distribution: JavaDistribution,
) -> Self
pub fn new( username: impl Into<String>, uuid: impl Into<String>, java_distribution: JavaDistribution, ) -> Self
Create a new launch configuration
§Arguments
username: Player usernameuuid: Player UUID (format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)java_distribution: Java distribution to download/use
Trait Implementations§
Source§impl Clone for LaunchConfig
impl Clone for LaunchConfig
Source§fn clone(&self) -> LaunchConfig
fn clone(&self) -> LaunchConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LaunchConfig
impl Debug for LaunchConfig
Auto Trait Implementations§
impl Freeze for LaunchConfig
impl RefUnwindSafe for LaunchConfig
impl Send for LaunchConfig
impl Sync for LaunchConfig
impl Unpin for LaunchConfig
impl UnwindSafe for LaunchConfig
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)