#[repr(u32)]pub enum SerialParity {
Default = 0,
None = 1,
Even = 2,
Odd = 3,
Mark = 4,
Space = 5,
}Expand description
Parity mode for SerialIo::set_attributes. (UEFI specification §12.8.1)
Variants§
Default = 0
Use the device default parity.
None = 1
No parity bit.
Even = 2
Even parity.
Odd = 3
Odd parity.
Mark = 4
Mark parity (parity bit always 1).
Space = 5
Space parity (parity bit always 0).
Trait Implementations§
Source§impl Clone for SerialParity
impl Clone for SerialParity
impl Copy for SerialParity
Source§impl Debug for SerialParity
impl Debug for SerialParity
impl Eq for SerialParity
Source§impl PartialEq for SerialParity
impl PartialEq for SerialParity
impl StructuralPartialEq for SerialParity
Auto Trait Implementations§
impl Freeze for SerialParity
impl RefUnwindSafe for SerialParity
impl Send for SerialParity
impl Sync for SerialParity
impl Unpin for SerialParity
impl UnsafeUnpin for SerialParity
impl UnwindSafe for SerialParity
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