pub struct RuntimeSessionSpec {
pub session_id: String,
pub route_id: String,
pub env_component_id: String,
pub model_component_id: String,
pub env_id: String,
pub env_contract: EnvContract,
pub num_envs: usize,
pub max_episodes: Option<u64>,
pub close_env_on_end: bool,
pub limits: RuntimeLimits,
}Fields§
§session_id: String§route_id: String§env_component_id: String§model_component_id: String§env_id: String§env_contract: EnvContract§num_envs: usize§max_episodes: Option<u64>§close_env_on_end: bool§limits: RuntimeLimitsImplementations§
Source§impl RuntimeSessionSpec
impl RuntimeSessionSpec
pub fn validate(&self) -> Result<(), String>
pub fn route_context(&self) -> RuntimeRouteContext
pub fn observation_space(&self) -> &SpaceSpec
pub fn action_space(&self) -> &SpaceSpec
Trait Implementations§
Source§impl Clone for RuntimeSessionSpec
impl Clone for RuntimeSessionSpec
Source§fn clone(&self) -> RuntimeSessionSpec
fn clone(&self) -> RuntimeSessionSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeSessionSpec
impl Debug for RuntimeSessionSpec
Source§impl PartialEq for RuntimeSessionSpec
impl PartialEq for RuntimeSessionSpec
Source§fn eq(&self, other: &RuntimeSessionSpec) -> bool
fn eq(&self, other: &RuntimeSessionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeSessionSpec
Auto Trait Implementations§
impl Freeze for RuntimeSessionSpec
impl RefUnwindSafe for RuntimeSessionSpec
impl Send for RuntimeSessionSpec
impl Sync for RuntimeSessionSpec
impl Unpin for RuntimeSessionSpec
impl UnsafeUnpin for RuntimeSessionSpec
impl UnwindSafe for RuntimeSessionSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request