pub enum PlanetToOrchestratorKind {
SunrayAck,
AsteroidAck,
StartPlanetAIResult,
StopPlanetAIResult,
KillPlanetResult,
InternalStateResponse,
IncomingExplorerResponse,
OutgoingExplorerResponse,
Stopped,
}Variants§
SunrayAck
This variant is used to acknowledge the obtained Sunray
Response to: OrchestratorToPlanet::Sunray
AsteroidAck
This variant is used to acknowledge the obtained Asteroid and notify the orchestrator if the planet has a rocket to defend itself
Response to: OrchestratorToPlanet::Asteroid
StartPlanetAIResult
This variant is used to acknowledge the starting of the Planet Ai
Response to: OrchestratorToPlanet::StartPlanetAI
StopPlanetAIResult
This variant is used to acknowledge the stopping of the Planet Ai, in this state a planet will only respond
to incoming messages with a PlanetToOrchestrator::Stopped
Response to: OrchestratorToPlanet::StopPlanetAI
KillPlanetResult
This variant is used to acknowledge the killing of a planet, in this case the planet thread will be terminated and the planet will be deleted from the galaxy
Response to: OrchestratorToPlanet::KillPlanet
InternalStateResponse
This variant is used to send back the Planet State
Response to OrchestratorToPlanet::InternalStateRequest
IncomingExplorerResponse
This variant is used to acknowledge the incoming explorer reception
Response to OrchestratorToPlanet::IncomingExplorerRequest
OutgoingExplorerResponse
This variant is used to acknowledge that an explorer is leaving the planet
Response to: OrchestratorToPlanet::OutgoingExplorerRequest
Stopped
This variant is used by planets that are currently in a stopped state
to acknowledge any message coming from the Orchestrator (except for OrchestratorToPlanet::StartPlanetAI)
Trait Implementations§
Source§impl Clone for PlanetToOrchestratorKind
impl Clone for PlanetToOrchestratorKind
Source§fn clone(&self) -> PlanetToOrchestratorKind
fn clone(&self) -> PlanetToOrchestratorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more