[][src]Struct ggpf_gym::GymRunnerClient

pub struct GymRunnerClient<C = Channel<GymRunnerRequest, GymRunnerResponse>>(_);

The client stub that makes RPC calls to the server. Exposes a Future interface.

Methods

impl GymRunnerClient[src]

pub fn new<T>(
    config: Config,
    transport: T
) -> NewClient<Self, RequestDispatch<GymRunnerRequest, GymRunnerResponse, T>> where
    T: Transport<ClientMessage<GymRunnerRequest>, Response<GymRunnerResponse>>, 
[src]

Returns a new client stub that sends requests over the given transport.

impl<C> GymRunnerClient<C> where
    C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>, 
[src]

pub fn init(
    &mut self,
    ctx: Context,
    name: String,
    render: bool
) -> impl Future<Output = Result<()>> + '_
[src]

pub fn reset(
    &mut self,
    ctx: Context
) -> impl Future<Output = Result<SpaceData>> + '_
[src]

pub fn play(
    &mut self,
    ctx: Context,
    action: usize
) -> impl Future<Output = Result<State>> + '_
[src]

pub fn action_space(
    &mut self,
    ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
[src]

pub fn observation_space(
    &mut self,
    ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
[src]

Trait Implementations

impl<C: Clone> Clone for GymRunnerClient<C>[src]

impl<C: Debug> Debug for GymRunnerClient<C>[src]

impl<C> From<C> for GymRunnerClient<C> where
    C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>, 
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for GymRunnerClient<C> where
    C: RefUnwindSafe

impl<C> Send for GymRunnerClient<C> where
    C: Send

impl<C> Sync for GymRunnerClient<C> where
    C: Sync

impl<C> Unpin for GymRunnerClient<C> where
    C: Unpin

impl<C> UnwindSafe for GymRunnerClient<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,