[−][src]Struct ggpf_gym::GymRunnerClient
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]
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<GymRunnerRequest, GymRunnerResponse, T>> where
T: Transport<ClientMessage<GymRunnerRequest>, Response<GymRunnerResponse>>,
Returns a new client stub that sends requests over the given transport.
impl<C> GymRunnerClient<C> where
C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>,
[src]
C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>,
pub fn init(
&mut self,
ctx: Context,
name: String,
render: bool
) -> impl Future<Output = Result<()>> + '_
[src]
&mut self,
ctx: Context,
name: String,
render: bool
) -> impl Future<Output = Result<()>> + '_
pub fn reset(
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceData>> + '_
[src]
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceData>> + '_
pub fn play(
&mut self,
ctx: Context,
action: usize
) -> impl Future<Output = Result<State>> + '_
[src]
&mut self,
ctx: Context,
action: usize
) -> impl Future<Output = Result<State>> + '_
pub fn action_space(
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
[src]
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
pub fn observation_space(
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
[src]
&mut self,
ctx: Context
) -> impl Future<Output = Result<SpaceTemplate>> + '_
Trait Implementations
impl<C: Clone> Clone for GymRunnerClient<C>
[src]
fn clone(&self) -> GymRunnerClient<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for GymRunnerClient<C>
[src]
impl<C> From<C> for GymRunnerClient<C> where
C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>,
[src]
C: Client<'a, GymRunnerRequest, Response = GymRunnerResponse>,
Auto Trait Implementations
impl<C> RefUnwindSafe for GymRunnerClient<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for GymRunnerClient<C> where
C: Send,
C: Send,
impl<C> Sync for GymRunnerClient<C> where
C: Sync,
C: Sync,
impl<C> Unpin for GymRunnerClient<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for GymRunnerClient<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
fn from_py(t: T, Python) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
U: FromPy<T>,
fn into_py(self, py: Python) -> U
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,