[][src]Trait ggpf_gym::GymRunner

pub trait GymRunner: Clone {
    type InitFut: Future<Output = ()>;
    type ResetFut: Future<Output = SpaceData>;
    type PlayFut: Future<Output = State>;
    type ActionSpaceFut: Future<Output = SpaceTemplate>;
    type ObservationSpaceFut: Future<Output = SpaceTemplate>;
    fn init(self, context: Context, name: String, render: bool) -> Self::InitFut;
fn reset(self, context: Context) -> Self::ResetFut;
fn play(self, context: Context, action: usize) -> Self::PlayFut;
fn action_space(self, context: Context) -> Self::ActionSpaceFut;
fn observation_space(self, context: Context) -> Self::ObservationSpaceFut; fn serve(self) -> ServeGymRunner<Self> { ... } }

Associated Types

type InitFut: Future<Output = ()>

The response future returned by init.

type ResetFut: Future<Output = SpaceData>

The response future returned by reset.

type PlayFut: Future<Output = State>

The response future returned by play.

type ActionSpaceFut: Future<Output = SpaceTemplate>

The response future returned by action_space.

type ObservationSpaceFut: Future<Output = SpaceTemplate>

The response future returned by observation_space.

Loading content...

Required methods

fn init(self, context: Context, name: String, render: bool) -> Self::InitFut

fn reset(self, context: Context) -> Self::ResetFut

fn play(self, context: Context, action: usize) -> Self::PlayFut

fn action_space(self, context: Context) -> Self::ActionSpaceFut

fn observation_space(self, context: Context) -> Self::ObservationSpaceFut

Loading content...

Provided methods

fn serve(self) -> ServeGymRunner<Self>

Returns a serving function to use with tarpc::server::Server.

Loading content...

Implementors

Loading content...