pub enum SwFlowControl {
Disabled,
Enabled {
xon_char: u8,
xoff_char: u8,
xon_threshold: u8,
xoff_threshold: u8,
},
}
Available on crate feature
unstable
only.Expand description
Software flow control settings.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants§
Disabled
Disables software flow control.
Enabled
Enables software flow control with configured parameters
Fields
§
xon_char: u8
Xon flow control byte.
§
xoff_char: u8
Xoff flow control byte.
§
xon_threshold: u8
If the software flow control is enabled and the data amount in rxfifo is less than xon_thrd, an xon_char will be sent.
§
xoff_threshold: u8
If the software flow control is enabled and the data amount in rxfifo is more than xoff_thrd, an xoff_char will be sent
Trait Implementations§
Source§impl Clone for SwFlowControl
impl Clone for SwFlowControl
Source§fn clone(&self) -> SwFlowControl
fn clone(&self) -> SwFlowControl
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SwFlowControl
impl Debug for SwFlowControl
Source§impl Default for SwFlowControl
impl Default for SwFlowControl
Source§fn default() -> SwFlowControl
fn default() -> SwFlowControl
Returns the “default value” for a type. Read more
Source§impl PartialEq for SwFlowControl
impl PartialEq for SwFlowControl
impl Copy for SwFlowControl
impl Eq for SwFlowControl
impl StructuralPartialEq for SwFlowControl
Auto Trait Implementations§
impl Freeze for SwFlowControl
impl RefUnwindSafe for SwFlowControl
impl Send for SwFlowControl
impl Sync for SwFlowControl
impl Unpin for SwFlowControl
impl UnwindSafe for SwFlowControl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)