Struct sbp::messages::piksi::uart_channel::UARTChannel
source · pub struct UARTChannel {
pub tx_throughput: f32,
pub rx_throughput: f32,
pub crc_error_count: u16,
pub io_error_count: u16,
pub tx_buffer_level: u8,
pub rx_buffer_level: u8,
}
Expand description
State of the UART channel
Throughput, utilization, and error counts on the RX/TX buffers of this UART channel. The reported percentage values must be normalized.
Fields§
§tx_throughput: f32
UART transmit throughput
rx_throughput: f32
UART receive throughput
crc_error_count: u16
UART CRC error count
io_error_count: u16
UART IO error count
tx_buffer_level: u8
UART transmit buffer percentage utilization (ranges from 0 to 255)
rx_buffer_level: u8
UART receive buffer percentage utilization (ranges from 0 to 255)
Trait Implementations§
source§impl Clone for UARTChannel
impl Clone for UARTChannel
source§fn clone(&self) -> UARTChannel
fn clone(&self) -> UARTChannel
Returns a copy 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 UARTChannel
impl Debug for UARTChannel
source§impl<'de> Deserialize<'de> for UARTChannel
impl<'de> Deserialize<'de> for UARTChannel
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 PartialEq for UARTChannel
impl PartialEq for UARTChannel
source§fn eq(&self, other: &UARTChannel) -> bool
fn eq(&self, other: &UARTChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UARTChannel
impl Serialize for UARTChannel
impl StructuralPartialEq for UARTChannel
Auto Trait Implementations§
impl Freeze for UARTChannel
impl RefUnwindSafe for UARTChannel
impl Send for UARTChannel
impl Sync for UARTChannel
impl Unpin for UARTChannel
impl UnwindSafe for UARTChannel
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