pub struct Status { /* private fields */ }
Expand description
Control signal status.
Implementations§
source§impl Status
impl Status
sourcepub fn cts(&self) -> bool
pub fn cts(&self) -> bool
Returns true
if CTS is active.
CTS (active low) is controlled by the external device. An active signal indicates the external device is ready to receive more data.
sourcepub fn dtr(&self) -> bool
pub fn dtr(&self) -> bool
Returns true
if DTR is active.
DTR (active low) is controlled by Uart
. When communicating with a
modem, an active signal is used to place or accept a call. An inactive
signal causes the modem to hang up. Other devices may use DTR and DSR
for flow control.
DTR is not supported by the Raspberry Pi’s UART peripherals, but may be available on some USB to serial adapters.
sourcepub fn dsr(&self) -> bool
pub fn dsr(&self) -> bool
Returns true
if DSR is active.
DSR (active low) is controlled by the external device. When communicating with a modem, an active signal indicates the modem is ready for data transmission. Other devices may use DTR and DSR for flow control.
DSR is not supported by the Raspberry Pi’s UART peripherals, but may be available on some USB to serial adapters.
sourcepub fn dcd(&self) -> bool
pub fn dcd(&self) -> bool
Returns true
if DCD is active.
DCD (active low) is controlled by the external device. When communicating with a modem, an active signal indicates a connection is established.
DCD is not supported by the Raspberry Pi’s UART peripherals, but may be available on some USB to serial adapters.
sourcepub fn ri(&self) -> bool
pub fn ri(&self) -> bool
Returns true
if RI is active.
RI (active low) is controlled by the external device. When communicating with a modem, an active signal indicates an incoming call.
RI is not supported by the Raspberry Pi’s UART peripherals, but may be available on some USB to serial adapters.