pub enum POWER_SWITCHING_MODE_A {
SAME_TIME = 0,
INDIVIDUAL = 1,
}
Expand description
PowerSwitchingMode
This bit is used to specify how the power switching of the Root Hub ports is controlled. It is implementation-specific. This field is only valid if the NoPowerSwitching field is cleared.
Value on reset: 1
Variants§
SAME_TIME = 0
0: All ports are powered at the same time
INDIVIDUAL = 1
1: Each port is powered individually. This mode allows port power to be controlled by either the global switch or per- port switching. If the PortPowerControlMask bit is set, the port responds only to port power commands ( Set/ClearPortPower ). If the port mask is cleared, then the port is controlled only by the global power switch ( Set/ClearGlobalPower ).
Trait Implementations§
source§impl Clone for POWER_SWITCHING_MODE_A
impl Clone for POWER_SWITCHING_MODE_A
source§fn clone(&self) -> POWER_SWITCHING_MODE_A
fn clone(&self) -> POWER_SWITCHING_MODE_A
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 POWER_SWITCHING_MODE_A
impl Debug for POWER_SWITCHING_MODE_A
source§impl From<POWER_SWITCHING_MODE_A> for bool
impl From<POWER_SWITCHING_MODE_A> for bool
source§fn from(variant: POWER_SWITCHING_MODE_A) -> Self
fn from(variant: POWER_SWITCHING_MODE_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for POWER_SWITCHING_MODE_A
impl PartialEq for POWER_SWITCHING_MODE_A
impl Copy for POWER_SWITCHING_MODE_A
impl Eq for POWER_SWITCHING_MODE_A
impl StructuralPartialEq for POWER_SWITCHING_MODE_A
Auto Trait Implementations§
impl Freeze for POWER_SWITCHING_MODE_A
impl RefUnwindSafe for POWER_SWITCHING_MODE_A
impl Send for POWER_SWITCHING_MODE_A
impl Sync for POWER_SWITCHING_MODE_A
impl Unpin for POWER_SWITCHING_MODE_A
impl UnwindSafe for POWER_SWITCHING_MODE_A
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)