Enum serial2::Parity [−][src]
pub enum Parity {
None,
Odd,
Even,
}
Expand description
The type of parity check for a serial port.
Variants
Do not add a parity bit and do not check for parity.
Add a bit to ensure odd parity of all characters send over the serial port.
Received characters are also expected to have a parity bit and odd parity. What happens with received characters that have invalid parity is platform and device specific.
Add a bit to ensure even parity of all characters send over the serial port.
Received characters are also expected to have a parity bit and even parity. What happens with received characters that have invalid parity is platform and device specific.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Parity
impl UnwindSafe for Parity
Blanket Implementations
Mutably borrows from an owned value. Read more