#[repr(C)]
pub struct ftdi_context {
Show 21 fields pub usb_ctx: *mut libusb_context, pub usb_dev: *mut libusb_device_handle, pub usb_read_timeout: c_int, pub usb_write_timeout: c_int, pub type_: ftdi_chip_type, pub baudrate: c_int, pub bitbang_enabled: c_uchar, pub readbuffer: *mut c_uchar, pub readbuffer_offset: c_uint, pub readbuffer_remaining: c_uint, pub readbuffer_chunksize: c_uint, pub writebuffer_chunksize: c_uint, pub max_packet_size: c_uint, pub interface: c_int, pub index: c_int, pub in_ep: c_int, pub out_ep: c_int, pub bitbang_mode: c_uchar, pub eeprom: *mut ftdi_eeprom, pub error_str: *const c_char, pub module_detach_mode: ftdi_module_detach_mode,
}

Fields§

§usb_ctx: *mut libusb_context§usb_dev: *mut libusb_device_handle§usb_read_timeout: c_int§usb_write_timeout: c_int§type_: ftdi_chip_type§baudrate: c_int§bitbang_enabled: c_uchar§readbuffer: *mut c_uchar§readbuffer_offset: c_uint§readbuffer_remaining: c_uint§readbuffer_chunksize: c_uint§writebuffer_chunksize: c_uint§max_packet_size: c_uint§interface: c_int§index: c_int§in_ep: c_int§out_ep: c_int§bitbang_mode: c_uchar§eeprom: *mut ftdi_eeprom§error_str: *const c_char§module_detach_mode: ftdi_module_detach_mode

Trait Implementations§

source§

impl Debug for ftdi_context

source§

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

Formats the value using the given formatter. Read more

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, 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.