pub struct ActorConfig<P: OutDim> {
pub pi_config: Option<P>,
pub opt_config: OptimizerConfig,
}Expand description
Configuration of Actor.
Fields§
§pi_config: Option<P>§opt_config: OptimizerConfigImplementations§
Source§impl<P> ActorConfig<P>
impl<P> ActorConfig<P>
Sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
Source§impl<P: Clone + OutDim> Clone for ActorConfig<P>
impl<P: Clone + OutDim> Clone for ActorConfig<P>
Source§fn clone(&self) -> ActorConfig<P>
fn clone(&self) -> ActorConfig<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: OutDim> Default for ActorConfig<P>
impl<P: OutDim> Default for ActorConfig<P>
Source§impl<'de, P> Deserialize<'de> for ActorConfig<P>where
P: Deserialize<'de> + OutDim,
impl<'de, P> Deserialize<'de> for ActorConfig<P>where
P: Deserialize<'de> + OutDim,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P> Serialize for ActorConfig<P>
impl<P> Serialize for ActorConfig<P>
impl<P: OutDim> StructuralPartialEq for ActorConfig<P>
Auto Trait Implementations§
impl<P> Freeze for ActorConfig<P>where
P: Freeze,
impl<P> RefUnwindSafe for ActorConfig<P>where
P: RefUnwindSafe,
impl<P> Send for ActorConfig<P>where
P: Send,
impl<P> Sync for ActorConfig<P>where
P: Sync,
impl<P> Unpin for ActorConfig<P>where
P: Unpin,
impl<P> UnwindSafe for ActorConfig<P>where
P: UnwindSafe,
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