pub struct RunnerConfig {
pub ipc_address: String,
pub module_name: String,
pub shm_name: String,
pub tick_signal_name: String,
pub busy_signal_name: Option<String>,
pub log_level: LevelFilter,
pub log_udp_port: u16,
}Expand description
Configuration for the ControlRunner.
Specifies connection parameters, shared memory names, and logging settings.
Use Default::default() for typical configurations.
§Example
use autocore_std::RunnerConfig;
use log::LevelFilter;
let config = RunnerConfig {
ipc_address: "192.168.1.100:9100".to_string(),
module_name: "my_controller".to_string(),
shm_name: "my_project_shm".to_string(),
tick_signal_name: "tick".to_string(),
busy_signal_name: Some("busy".to_string()),
log_level: LevelFilter::Debug,
..Default::default()
};Fields§
§ipc_address: StringIPC server address in “host:port” format (default: “127.0.0.1:9100”)
module_name: StringModule name for registration with the server (default: “control”)
shm_name: StringShared memory segment name (must match server configuration)
tick_signal_name: StringName of the tick signal in shared memory (triggers each scan cycle)
busy_signal_name: Option<String>Optional name of the busy signal (set when cycle completes)
log_level: LevelFilterMinimum log level to send to the server (default: Info)
log_udp_port: u16UDP port for sending logs to the server (default: 39101)
Trait Implementations§
Source§impl Clone for RunnerConfig
impl Clone for RunnerConfig
Source§fn clone(&self) -> RunnerConfig
fn clone(&self) -> RunnerConfig
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 Debug for RunnerConfig
impl Debug for RunnerConfig
Auto Trait Implementations§
impl Freeze for RunnerConfig
impl RefUnwindSafe for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnwindSafe for RunnerConfig
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