#[repr(transparent)]pub struct IOUSBHostCIDeviceState(pub c_uint);Available on crate feature
IOUSBHostControllerInterfaceDefinitions only.Expand description
Device state managed by IOUSBHostCIDeviceStateMachine
IOUSBHostCIDeviceStateDestroyed represents a device that is no longer usable, and whose resources will be destroyed and freed IOUSBHostCIDeviceStatePaused represents a device that may have IO requests enqueued, but they are not active on the bus. The state is closely correlated to IOUSBHostCIPortStateSuspended, and endpoints associated with this device may not be in the IOUSBHostCIEndpointStateActive state. IOUSBHostCIDeviceStateActive is the initial sate of a newly created IOUSBHsotCIDeviceStateMachine, and represents a device that can be processing IO requests. Endpoints associated with this device may be in the IOUSBHostCIEndpointStateActive state.
See also Apple’s documentation
Tuple Fields§
§0: c_uintImplementations§
Trait Implementations§
Source§impl Clone for IOUSBHostCIDeviceState
impl Clone for IOUSBHostCIDeviceState
Source§fn clone(&self) -> IOUSBHostCIDeviceState
fn clone(&self) -> IOUSBHostCIDeviceState
Returns a duplicate 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 IOUSBHostCIDeviceState
impl Debug for IOUSBHostCIDeviceState
Source§impl Encode for IOUSBHostCIDeviceState
impl Encode for IOUSBHostCIDeviceState
Source§impl Hash for IOUSBHostCIDeviceState
impl Hash for IOUSBHostCIDeviceState
Source§impl Ord for IOUSBHostCIDeviceState
impl Ord for IOUSBHostCIDeviceState
Source§fn cmp(&self, other: &IOUSBHostCIDeviceState) -> Ordering
fn cmp(&self, other: &IOUSBHostCIDeviceState) -> 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 IOUSBHostCIDeviceState
impl PartialEq for IOUSBHostCIDeviceState
Source§impl PartialOrd for IOUSBHostCIDeviceState
impl PartialOrd for IOUSBHostCIDeviceState
Source§impl RefEncode for IOUSBHostCIDeviceState
impl RefEncode for IOUSBHostCIDeviceState
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOUSBHostCIDeviceState
impl Eq for IOUSBHostCIDeviceState
impl StructuralPartialEq for IOUSBHostCIDeviceState
Auto Trait Implementations§
impl Freeze for IOUSBHostCIDeviceState
impl RefUnwindSafe for IOUSBHostCIDeviceState
impl Send for IOUSBHostCIDeviceState
impl Sync for IOUSBHostCIDeviceState
impl Unpin for IOUSBHostCIDeviceState
impl UnwindSafe for IOUSBHostCIDeviceState
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.