pub struct PerceptionDecoderConfig {
pub agent_id: String,
pub cortical_unit_id: u8,
pub feagi_host: String,
pub feagi_api_port: u16,
pub feagi_zmq_registration_port: u16,
pub feagi_zmq_agent_sensory_port: u16,
pub feagi_zmq_motor_port: u16,
pub feagi_heartbeat_interval_s: f64,
pub feagi_connection_timeout_ms: u64,
pub feagi_registration_retries: u32,
pub feagi_motor_poll_interval_s: f64,
}Expand description
Configuration for the perception decoder.
Fields§
§agent_id: String§cortical_unit_id: u8§feagi_host: String§feagi_api_port: u16§feagi_zmq_registration_port: u16§feagi_zmq_agent_sensory_port: u16§feagi_zmq_motor_port: u16§feagi_heartbeat_interval_s: f64§feagi_connection_timeout_ms: u64§feagi_registration_retries: u32§feagi_motor_poll_interval_s: f64Implementations§
Source§impl PerceptionDecoderConfig
impl PerceptionDecoderConfig
Sourcepub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
pub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
Build an AgentConfig for this perception decoder.
Sourcepub fn cortical_ids(&self) -> Vec<CorticalID>
pub fn cortical_ids(&self) -> Vec<CorticalID>
Returns the cortical IDs used by this decoder (oseg, oimg, oten).
Sourcepub fn oten_cortical_id(&self) -> CorticalID
pub fn oten_cortical_id(&self) -> CorticalID
Returns the cortical ID for OTEN output.
Trait Implementations§
Source§impl Clone for PerceptionDecoderConfig
impl Clone for PerceptionDecoderConfig
Source§fn clone(&self) -> PerceptionDecoderConfig
fn clone(&self) -> PerceptionDecoderConfig
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 moreAuto Trait Implementations§
impl Freeze for PerceptionDecoderConfig
impl RefUnwindSafe for PerceptionDecoderConfig
impl Send for PerceptionDecoderConfig
impl Sync for PerceptionDecoderConfig
impl Unpin for PerceptionDecoderConfig
impl UnwindSafe for PerceptionDecoderConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more