Enum serial_core::Parity [] [src]

pub enum Parity {
    ParityNone,
    ParityOdd,
    ParityEven,
}

Parity checking modes.

When parity checking is enabled (ParityOdd or ParityEven) an extra bit is transmitted with each character. The value of the parity bit is arranged so that the number of 1 bits in the character (including the parity bit) is an even number (ParityEven) or an odd number (ParityOdd).

Parity checking is disabled by setting ParityNone, in which case parity bits are not transmitted.

Variants

No parity bit.

Parity bit sets odd number of 1 bits.

Parity bit sets even number of 1 bits.

Trait Implementations

impl Debug for Parity
[src]

Formats the value using the given formatter.

impl Copy for Parity
[src]

impl Clone for Parity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Parity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Parity
[src]