pub enum PortFeature {
Connection = 0,
Enable = 1,
Suspend = 2,
OverCurrent = 3,
Reset = 4,
Power = 8,
LowSpeed = 9,
CConnection = 16,
CEnable = 17,
CSuspend = 18,
COverCurrent = 19,
CReset = 20,
}Expand description
端口特性选择器
参照 USB 2.0 规范表 11-17。
Variants§
Connection = 0
Enable = 1
Suspend = 2
OverCurrent = 3
Reset = 4
Power = 8
LowSpeed = 9
CConnection = 16
CEnable = 17
CSuspend = 18
COverCurrent = 19
CReset = 20
Trait Implementations§
Source§impl Clone for PortFeature
impl Clone for PortFeature
Source§fn clone(&self) -> PortFeature
fn clone(&self) -> PortFeature
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 PortFeature
impl Debug for PortFeature
Source§impl PartialEq for PortFeature
impl PartialEq for PortFeature
impl Copy for PortFeature
impl Eq for PortFeature
impl StructuralPartialEq for PortFeature
Auto Trait Implementations§
impl Freeze for PortFeature
impl RefUnwindSafe for PortFeature
impl Send for PortFeature
impl Sync for PortFeature
impl Unpin for PortFeature
impl UnwindSafe for PortFeature
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