pub struct ConnectionConfig {Show 16 fields
pub port: String,
pub name: Option<String>,
pub baud_rate: u32,
pub data_bits: DataBits,
pub stop_bits: StopBits,
pub parity: Parity,
pub flow_control: FlowControl,
pub port_info: Option<PortInfo>,
pub log_capacity: usize,
pub log_enabled: bool,
pub tx_framing: Option<TxFramingConfig>,
pub rx_framing: Option<RxFramingConfig>,
pub rx_parser: Option<ParserConfig>,
pub protocol: Option<ProtocolPreset>,
pub rx_buffer_size: usize,
pub max_buffered_bytes: usize,
}Expand description
Concrete parameters required to open a serial port.
Fields§
§port: String§name: Option<String>§baud_rate: u32§data_bits: DataBits§stop_bits: StopBits§parity: Parity§flow_control: FlowControl§port_info: Option<PortInfo>OS-level port identity (VID, PID, serial, transport, etc.) Captured at open time for status and profile save operations.
log_capacity: usizeLog buffer capacity in events. 0 or None disables logging. Default: 1024.
log_enabled: boolWhether logging is enabled. Default: true when capacity > 0.
tx_framing: Option<TxFramingConfig>Default TX framing applied when write omits tx_framing.
rx_framing: Option<RxFramingConfig>Default RX framing applied when read/transact/capture_boot omit
rx_framing.
rx_parser: Option<ParserConfig>Default RX parser applied when read/transact/capture_boot omit
rx_parser.
protocol: Option<ProtocolPreset>Default protocol preset. Expands to fill framing/parser gaps.
rx_buffer_size: usizeRX ring buffer size in bytes for the always-on pump.
max_buffered_bytes: usizeDefault max buffered bytes for read operations.
Trait Implementations§
Source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
Source§impl Debug for ConnectionConfig
impl Debug for ConnectionConfig
Source§impl JsonSchema for ConnectionConfig
impl JsonSchema for ConnectionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ConnectionConfig
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnsafeUnpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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