First test kinda working
This commit is contained in:
13
substrate/src/transport/state.rs
Normal file
13
substrate/src/transport/state.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use bevy::prelude::States;
|
||||
|
||||
/// Lifecycle of the QUIC listener inside the ECS schedule.
|
||||
///
|
||||
/// `Starting` is the default; `OnEnter(Starting)` performs the bind and, on
|
||||
/// success, transitions to `Started`. A `Failed` variant will join when we
|
||||
/// add proper error surfacing — for now a bind failure panics the app.
|
||||
#[derive(States, Debug, Clone, Copy, Default, Eq, PartialEq, Hash)]
|
||||
pub enum ServerState {
|
||||
#[default]
|
||||
Starting,
|
||||
Started,
|
||||
}
|
||||
Reference in New Issue
Block a user