#[repr(u8)]pub enum PdTypeCState {
Show 38 variants
Disabled = 0,
DelayUnattached = 1,
AttachedResistance = 2,
TryResistance = 3,
AttachedDebSource = 4,
UnattachedDebSource = 5,
AttachWaitDebSource = 6,
TryDebSource = 7,
AttachedSource = 8,
UnattachedSource = 9,
AttachWaitSource = 10,
TryWaitSource = 11,
TrySource = 12,
DebugAccessorySource = 13,
AttachedCable = 14,
IllegalCable = 15,
AttachWaitCable = 16,
AttachWaitMonitorDefective = 17,
AttachedLightningPlug = 18,
AttachWaitLightningPlug = 19,
AttachedDebSink = 20,
AttachWaitDebSink = 21,
TryWaitDebSink = 22,
AttachedSink = 23,
AttachWaitSink = 24,
TryWaitSink = 25,
TrySink = 26,
DebugAccessorySink = 27,
AttachedMonitor = 28,
AttachWaitMonitor = 29,
CableCross = 30,
CablePlugShortCircuit = 31,
ErrorRecovery = 32,
PoweredAccessory = 33,
UnsupportedAccessory = 34,
AudioAccessory = 35,
AttachWaitAccessory = 36,
Unknown(u8),
}Expand description
Type-C state codes embedded in the KM003C V1.9.9 firmware.
Variants§
Disabled = 0
DelayUnattached = 1
AttachedResistance = 2
TryResistance = 3
AttachedDebSource = 4
UnattachedDebSource = 5
AttachWaitDebSource = 6
TryDebSource = 7
AttachedSource = 8
UnattachedSource = 9
AttachWaitSource = 10
TryWaitSource = 11
TrySource = 12
DebugAccessorySource = 13
AttachedCable = 14
IllegalCable = 15
AttachWaitCable = 16
AttachWaitMonitorDefective = 17
AttachedLightningPlug = 18
AttachWaitLightningPlug = 19
AttachedDebSink = 20
AttachWaitDebSink = 21
TryWaitDebSink = 22
AttachedSink = 23
AttachWaitSink = 24
TryWaitSink = 25
TrySink = 26
DebugAccessorySink = 27
AttachedMonitor = 28
AttachWaitMonitor = 29
CableCross = 30
CablePlugShortCircuit = 31
ErrorRecovery = 32
PoweredAccessory = 33
UnsupportedAccessory = 34
AudioAccessory = 35
AttachWaitAccessory = 36
Unknown(u8)
Trait Implementations§
Source§impl Clone for PdTypeCState
impl Clone for PdTypeCState
impl Copy for PdTypeCState
Source§impl Debug for PdTypeCState
impl Debug for PdTypeCState
impl Eq for PdTypeCState
Source§impl From<PdTypeCState> for u8
impl From<PdTypeCState> for u8
Source§fn from(enum_value: PdTypeCState) -> Self
fn from(enum_value: PdTypeCState) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PdTypeCState
impl From<u8> for PdTypeCState
Source§impl FromPrimitive for PdTypeCState
impl FromPrimitive for PdTypeCState
Source§impl PartialEq for PdTypeCState
impl PartialEq for PdTypeCState
impl StructuralPartialEq for PdTypeCState
Auto Trait Implementations§
impl Freeze for PdTypeCState
impl RefUnwindSafe for PdTypeCState
impl Send for PdTypeCState
impl Sync for PdTypeCState
impl Unpin for PdTypeCState
impl UnsafeUnpin for PdTypeCState
impl UnwindSafe for PdTypeCState
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