pub struct FlowControl {
pub dtr: DtrMode,
pub rts: RtsMode,
pub cts_handshake: bool,
pub dsr_handshake: bool,
pub dcd_handshake: bool,
pub dsr_sensitivity: bool,
pub auto_transmit: bool,
pub auto_receive: bool,
pub xon_limit: u32,
pub xoff_limit: u32,
}Expand description
Flow-control configuration (AN571 Tables 9–11).
Maps the commonly used bits of the 16-byte SET_FLOW / GET_FLOW
payload. For bits not covered here (e.g. SERIAL_XOFF_CONTINUE,
SERIAL_NULL_STRIPPING, SERIAL_ERROR_CHAR, SERIAL_BREAK_CHAR),
use Cp210xPort::set_flow_control_raw.
Fields§
§dtr: DtrModeDTR output mode.
rts: RtsModeRTS output mode.
cts_handshake: boolTreat CTS as a handshake line.
dsr_handshake: boolTreat DSR as a handshake line.
dcd_handshake: boolTreat DCD as a handshake line.
dsr_sensitivity: boolDiscard received data while DSR is low.
auto_transmit: boolAct on XON/XOFF received from the end device.
auto_receive: boolEmit XON/XOFF to the end device based on local buffer fill.
xon_limit: u32Threshold (bytes of free space) for sending XON in auto-receive mode.
xoff_limit: u32Threshold (bytes of free space) for sending XOFF in auto-receive mode.
Trait Implementations§
Source§impl Clone for FlowControl
impl Clone for FlowControl
Source§fn clone(&self) -> FlowControl
fn clone(&self) -> FlowControl
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 FlowControl
impl Debug for FlowControl
Source§impl Default for FlowControl
impl Default for FlowControl
Source§impl Format for FlowControl
impl Format for FlowControl
Source§impl PartialEq for FlowControl
impl PartialEq for FlowControl
impl Copy for FlowControl
impl Eq for FlowControl
impl StructuralPartialEq for FlowControl
Auto Trait Implementations§
impl Freeze for FlowControl
impl RefUnwindSafe for FlowControl
impl Send for FlowControl
impl Sync for FlowControl
impl Unpin for FlowControl
impl UnwindSafe for FlowControl
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