pub struct ConnectionStatus {Show 20 fields
pub connection_id: String,
pub name: Option<String>,
pub port: String,
pub baud_rate: u32,
pub data_bits: String,
pub stop_bits: String,
pub parity: String,
pub flow_control: String,
pub is_closed: bool,
pub tx_bytes: u64,
pub rx_bytes: u64,
pub last_activity_ms: Option<u64>,
pub read_ops: u64,
pub write_ops: u64,
pub truncation_count: u64,
pub port_info: Option<PortInfo>,
pub state: ConnectionState,
pub reconnect_attempts: u64,
pub last_error: Option<String>,
pub profile: Option<ProfileSessionResult>,
}Expand description
Full status snapshot of a connection used by the get_status tool.
Fields§
§connection_id: String§name: Option<String>§port: String§baud_rate: u32§data_bits: String§stop_bits: String§parity: String§flow_control: String§is_closed: bool§tx_bytes: u64§rx_bytes: u64§last_activity_ms: Option<u64>Last I/O activity as milliseconds since Unix epoch, or null.
read_ops: u64§write_ops: u64§truncation_count: u64§port_info: Option<PortInfo>OS-level port identity captured at open time (vid, pid, serial,
manufacturer, etc.). null for connections opened without
identity data (e.g. loopback tests).
state: ConnectionStateCurrent connection health state.
reconnect_attempts: u64Number of reconnect attempts since last disconnect.
last_error: Option<String>Last fatal error message, or null.
profile: Option<ProfileSessionResult>Active profile-session binding. null for connections inserted
directly by low-level tests.
Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
Source§impl Debug for ConnectionStatus
impl Debug for ConnectionStatus
Source§impl<'de> Deserialize<'de> for ConnectionStatus
impl<'de> Deserialize<'de> for ConnectionStatus
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 JsonSchema for ConnectionStatus
impl JsonSchema for ConnectionStatus
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 ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnsafeUnpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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