Enum sc2::Signal [] [src]

pub enum Signal {
    GetInstancePool,
    GetPortsPool,
    LaunchInstance,
    InstancePool(HashMap<Uuid, (Url, PortSet)>),
    PortsPool(Vec<GamePorts>),
    ProvideInstance(UuidUrl),
    ClientAttemptConnect(Url),
    ClientConnected(Sender<Message>),
    ClientReceive(Message),
    ClientRequest(ClientRequest),
    ClientResult(ClientResult),
    ClientTimeout(Uuid),
    ClientDisconnect,
    ClientClosed,
    ClientError(Rc<Error>),
    Ready,
    RequestPlayerSetup(GameSettings),
    PlayerSetup(PlayerSetup),
    CreateGame(GameSettingsVec<PlayerSetup>),
    GameCreated,
    GameReady(PlayerSetupOption<GamePorts>),
    JoinGame(GamePorts),
    FetchGameData,
    GameDataReady,
    RequestUpdateInterval,
    UpdateInterval(u32),
    GameStarted,
    Observe,
    Observation(Rc<FrameData>),
    Command(Command),
    DebugCommand(DebugCommand),
    UpdateComplete,
    GameEnded,
}

the messages that can be sent between Sc2 capable

Variants

get instances pool

get the ports pool

launch an instance

the pool of instances to choose from

the pool of game ports to choose from (num_instances / 2)

allow a soma to take complete control of an instance

attempt to connect to instance

internal-use client successfully connected to instance

internal-use client received a message

send some request to the game instance

result of transaction with game instance

internal-use message used to indicate when a transaction has timed out

disconnect from the instance

client has closed

client encountered a websocket error

agent is ready for a game to begin

request player setup

respond with player setup

create a game with the given settings and list of participants

game was created with the given settings

notify agents that game is ready to join with the given player setup

join an existing game

fetch the game data

game data ready

request update interval from player

respond with update interval in game steps

game started

observe the game state

current game state

issue a command to the game instance

issue a debug command to the game instance

notify the stepper that the soma is done updating

game ended

Trait Implementations

impl Debug for Signal
[src]

[src]

Formats the value using the given formatter.