Enum rppal::uart::ParityCheck
source · pub enum ParityCheck {
None,
Strip,
Replace,
Mark,
}
Expand description
Parity check modes.
The parity check mode determines how parity errors are handled.
Variants§
None
Ignores parity errors.
Strip
Removes bytes with parity errors from the input queue.
Replace
Replaces bytes with parity errors with a 0
byte.
Mark
Marks bytes with parity errors with a preceding 255
and 0
byte.
Actual 255
bytes are replaced with two 255
bytes to avoid confusion
with parity errors.
Trait Implementations§
source§impl Clone for ParityCheck
impl Clone for ParityCheck
source§fn clone(&self) -> ParityCheck
fn clone(&self) -> ParityCheck
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 ParityCheck
impl Debug for ParityCheck
source§impl Display for ParityCheck
impl Display for ParityCheck
source§impl PartialEq<ParityCheck> for ParityCheck
impl PartialEq<ParityCheck> for ParityCheck
source§fn eq(&self, other: &ParityCheck) -> bool
fn eq(&self, other: &ParityCheck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParityCheck
impl Eq for ParityCheck
impl StructuralEq for ParityCheck
impl StructuralPartialEq for ParityCheck
Auto Trait Implementations§
impl RefUnwindSafe for ParityCheck
impl Send for ParityCheck
impl Sync for ParityCheck
impl Unpin for ParityCheck
impl UnwindSafe for ParityCheck
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