pub enum FrameFormat {
N8,
E8,
O8,
E7,
O7,
}Expand description
Word length and parity, as a single setting.
E7/O7 leave 7 data bits because parity replaces the top one, E8/O8
keep all 8 by widening the frame to 9 bits. No N7 exists — without parity a
frame carries the full 8 bits, which is N8. For raw 9-bit words see
Usart::new_word.
Variants§
N8
8 data bits, no parity.
E8
8 data bits, even parity.
O8
8 data bits, odd parity.
E7
7 data bits, even parity.
O7
7 data bits, odd parity.
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
Source§fn clone(&self) -> FrameFormat
fn clone(&self) -> FrameFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameFormat
impl Eq for FrameFormat
Source§impl Format for FrameFormat
impl Format for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnsafeUnpin for FrameFormat
impl UnwindSafe for FrameFormat
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