Skip to main content

Crate lighty_event

Crate lighty_event 

Source
Expand description

Broadcast-based event system for LightyLauncher.

Re-exports§

pub use module::AuthEvent;
pub use module::ConsoleOutputEvent;
pub use module::ConsoleStream;
pub use module::CoreEvent;
pub use module::InstanceDeletedEvent;
pub use module::InstanceExitedEvent;
pub use module::InstanceLaunchedEvent;
pub use module::InstanceWindowAppearedEvent;
pub use module::JavaEvent;
pub use module::LaunchEvent;
pub use module::LoaderEvent;
pub use module::ModloaderEvent;

Modules§

module
Event modules for different components.

Structs§

EventBus
Event bus for broadcasting events to multiple listeners
EventReceiver
Receiver for events from an EventBus

Enums§

Event
Root event enum containing all event types
EventReceiveError
Errors that can occur when receiving events
EventSendError
Errors that can occur when sending events
EventTryReceiveError
Errors that can occur when trying to receive events (non-blocking)

Statics§

EVENT_BUS
Global event bus instance used by the library to emit events.

Type Aliases§

EventReceiveResult
Type alias for event receive operations
EventSendResult
Type alias for event send operations
EventTryReceiveResult
Type alias for event try receive operations