#[repr(i32)]pub enum SerialPort {
DEFAULT = 0,
UART = 1,
BLUETOOTH = 2,
}Variants§
Trait Implementations§
Source§impl Clone for SerialPort
impl Clone for SerialPort
Source§fn clone(&self) -> SerialPort
fn clone(&self) -> SerialPort
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for SerialPort
impl PartialEq for SerialPort
impl Copy for SerialPort
impl StructuralPartialEq for SerialPort
Auto Trait Implementations§
impl Freeze for SerialPort
impl RefUnwindSafe for SerialPort
impl Send for SerialPort
impl Sync for SerialPort
impl Unpin for SerialPort
impl UnwindSafe for SerialPort
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