pub struct UsbSerialPorts(pub Vec<UsbSerialPortInfo>);Expand description
A list of available serial ports
Used for pretty error messages.
Tuple Fields§
§0: Vec<UsbSerialPortInfo>Trait Implementations§
Source§impl Clone for UsbSerialPorts
impl Clone for UsbSerialPorts
Source§fn clone(&self) -> UsbSerialPorts
fn clone(&self) -> UsbSerialPorts
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 moreSource§impl Debug for UsbSerialPorts
impl Debug for UsbSerialPorts
Source§impl Display for UsbSerialPorts
impl Display for UsbSerialPorts
Source§impl PartialEq for UsbSerialPorts
impl PartialEq for UsbSerialPorts
Source§fn eq(&self, other: &UsbSerialPorts) -> bool
fn eq(&self, other: &UsbSerialPorts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsbSerialPorts
impl Serialize for UsbSerialPorts
impl Eq for UsbSerialPorts
impl StructuralPartialEq for UsbSerialPorts
Auto Trait Implementations§
impl Freeze for UsbSerialPorts
impl RefUnwindSafe for UsbSerialPorts
impl Send for UsbSerialPorts
impl Sync for UsbSerialPorts
impl Unpin for UsbSerialPorts
impl UnsafeUnpin for UsbSerialPorts
impl UnwindSafe for UsbSerialPorts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more