Enum libftd2xx::DriverType
source · #[repr(u8)]pub enum DriverType {
D2XX = 0,
Vcp = 1,
}
Expand description
FTDI driver type.
This is used in EEPROM structures.
Variants§
Trait Implementations§
source§impl Clone for DriverType
impl Clone for DriverType
source§fn clone(&self) -> DriverType
fn clone(&self) -> DriverType
Returns a copy 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 Debug for DriverType
impl Debug for DriverType
source§impl From<DriverType> for u8
impl From<DriverType> for u8
source§fn from(dt: DriverType) -> Self
fn from(dt: DriverType) -> Self
Converts to this type from the input type.
source§impl PartialEq for DriverType
impl PartialEq for DriverType
source§fn eq(&self, other: &DriverType) -> bool
fn eq(&self, other: &DriverType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for DriverType
impl TryFrom<u8> for DriverType
§type Error = EepromValueError
type Error = EepromValueError
The type returned in the event of a conversion error.
source§fn try_from(value: u8) -> Result<DriverType, EepromValueError>
fn try_from(value: u8) -> Result<DriverType, EepromValueError>
Performs the conversion.
impl Copy for DriverType
impl Eq for DriverType
impl StructuralPartialEq for DriverType
Auto Trait Implementations§
impl RefUnwindSafe for DriverType
impl Send for DriverType
impl Sync for DriverType
impl Unpin for DriverType
impl UnwindSafe for DriverType
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