pub struct TextEncoderConfig {
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_sensory_port: u16,
pub feagi_tick_hz: u32,
pub feagi_heartbeat_interval_s: f64,
pub feagi_connection_timeout_ms: u64,
pub feagi_registration_retries: u32,
}Expand description
Configuration for the text encoder.
Fields§
§agent_id: String§cortical_unit_id: u8§feagi_host: String§feagi_api_port: u16§feagi_zmq_registration_port: u16§feagi_zmq_sensory_port: u16§feagi_tick_hz: u32§feagi_heartbeat_interval_s: f64§feagi_connection_timeout_ms: u64§feagi_registration_retries: u32Implementations§
Source§impl TextEncoderConfig
impl TextEncoderConfig
Sourcepub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
pub fn to_agent_config(&self) -> Result<AgentConfig, SdkError>
Build an AgentConfig for this text encoder.
Sourcepub fn cortical_id(&self) -> CorticalID
pub fn cortical_id(&self) -> CorticalID
Cortical ID used for text input.
Trait Implementations§
Source§impl Clone for TextEncoderConfig
impl Clone for TextEncoderConfig
Source§fn clone(&self) -> TextEncoderConfig
fn clone(&self) -> TextEncoderConfig
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 TextEncoderConfig
impl RefUnwindSafe for TextEncoderConfig
impl Send for TextEncoderConfig
impl Sync for TextEncoderConfig
impl Unpin for TextEncoderConfig
impl UnwindSafe for TextEncoderConfig
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