Exports

Overview

Complete reference of all exports from lighty-launch and their re-exports in lighty-launcher.

In lighty_launch

Launch System

use lighty_launch::{
    LaunchBuilder,    // Builder for launching instances
    LaunchConfig,     // Launch configuration
};

Traits

use lighty_launch::{
    InstanceControl,  // MUST import to use instance management methods
    Installer,        // Asset/library installation
};

Instance Management

use lighty_launch::instance::{
    InstanceControl,
    InstanceError,
    InstanceResult,
};

Installer

Arguments

Errors

In lighty_launcher (Re-exports)

Usage Patterns

Pattern 1: Direct Crate Import

Pattern 2: Via Main Launcher Crate

Pattern 3: Prelude

Type Details

LaunchBuilder

InstanceControl Trait

IMPORTANT: This trait is automatically implemented for any type implementing VersionInfo, but you MUST import the trait to use its methods:

InstallerError

InstanceError

Module Structure

Error Handling

Installer Errors

Instance Errors

Feature-Gated Exports

Events Feature

When events feature is enabled:

  • LaunchEvent types are emitted (from lighty-event)

  • Console output is streamed via events

  • Instance lifecycle events are emitted

Last updated