Struct libftd2xx::Eeprom2232h

source ·
pub struct Eeprom2232h(/* private fields */);
Expand description

EEPROM structure for the FT2232H.

This is used by the eeprom_read and eeprom_program methods.

Implementations§

source§

impl Eeprom2232h

source

pub fn header(&self) -> EepromHeader

Get the EEPROM header.

source

pub fn set_header(&mut self, header: EepromHeader)

Set the EEPROM header.

Trait Implementations§

source§

impl Clone for Eeprom2232h

source§

fn clone(&self) -> Eeprom2232h

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Eeprom2232h

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Eeprom2232h

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<Eeprom2232h> for FT_EEPROM_2232H

source§

fn from(val: Eeprom2232h) -> FT_EEPROM_2232H

Converts to this type from the input type.
source§

impl From<ft_eeprom_2232h> for Eeprom2232h

source§

fn from(val: FT_EEPROM_2232H) -> Eeprom2232h

Converts to this type from the input type.
source§

impl FtdiEeprom<ft_eeprom_2232h, Eeprom2232h> for Ft2232h

source§

fn eeprom_read(&mut self) -> Result<(Eeprom, EepromStrings), FtStatus>

Read from the FTD2XX device EEPROM. Read more
source§

fn eeprom_program( &mut self, eeprom: Eeprom, strings: EepromStrings ) -> Result<(), FtStatus>

Program the FTD2XX EEPROM. Read more
source§

impl Copy for Eeprom2232h

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.