#[repr(u8)]pub enum StopBits {
One = 1,
Two = 2,
}
Expand description
The number of stop bits per character for a serial port.
Available on crate feature
serde
only:
This type supports (de)serialization as a number.
Variants§
One = 1
One stop bit.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 1
.
Two = 2
Two stop bit.
Available on crate feature
serde
only:
This variant is (de)serialized as the number 2
.
Implementations§
Trait Implementations§
source§impl Ord for StopBits
impl Ord for StopBits
source§impl PartialEq for StopBits
impl PartialEq for StopBits
source§impl PartialOrd for StopBits
impl PartialOrd for StopBits
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StopBits
impl Eq for StopBits
impl StructuralPartialEq for StopBits
Auto Trait Implementations§
impl RefUnwindSafe for StopBits
impl Send for StopBits
impl Sync for StopBits
impl Unpin for StopBits
impl UnwindSafe for StopBits
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