Struct libftd2xx::DeviceStatus
source · pub struct DeviceStatus {
pub ammount_in_rx_queue: u32,
pub ammount_in_tx_queue: u32,
pub event_status: u32,
}
Expand description
FTDI device status.
This is returned by status
.
Fields§
§ammount_in_rx_queue: u32
Number of characters in the receive queue.
ammount_in_tx_queue: u32
Number of characters in the transmit queue.
event_status: u32
Current state of the event status.
Trait Implementations§
source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
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 DeviceStatus
impl Debug for DeviceStatus
source§impl Ord for DeviceStatus
impl Ord for DeviceStatus
source§fn cmp(&self, other: &DeviceStatus) -> Ordering
fn cmp(&self, other: &DeviceStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DeviceStatus
impl PartialEq for DeviceStatus
source§fn eq(&self, other: &DeviceStatus) -> bool
fn eq(&self, other: &DeviceStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeviceStatus
impl PartialOrd for DeviceStatus
source§fn partial_cmp(&self, other: &DeviceStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DeviceStatus
impl Eq for DeviceStatus
impl StructuralPartialEq for DeviceStatus
Auto Trait Implementations§
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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