pub enum Type {
Show 33 variants
Normal,
SetupStage,
DataStage,
StatusStage,
Isoch,
Link,
EventData,
NoopTransfer,
EnableSlot,
DisableSlot,
AddressDevice,
ConfigureEndpoint,
EvaluateContext,
ResetEndpoint,
StopEndpoint,
SetTrDequeuePointer,
ResetDevice,
ForceEvent,
NegotiateBandwidth,
SetLatencyToleranceValue,
GetPortBandwidth,
ForceHeader,
NoopCommand,
GetExtendedProperty,
SetExtendedProperty,
TransferEvent,
CommandCompletion,
PortStatusChange,
BandwidthRequest,
Doorbell,
HostController,
DeviceNotification,
MfindexWrap,
}
Expand description
TRB Type.
Variants§
Normal
Normal TRB, 1
SetupStage
Setup Stage TRB, 2
DataStage
Data Stage TRB, 3
StatusStage
Status Stage TRB, 4
Isoch
Isoch TRB, 5
Link
Link TRB, 6
EventData
Event Data TRB, 7
NoopTransfer
No Op TRB (Transfer), 8
EnableSlot
Enable Slot Command TRB, 9
DisableSlot
Disable Slot Command TRB, 10
AddressDevice
Address Device Command TRB, 11
ConfigureEndpoint
Configure Endpoint Command TRB, 12
EvaluateContext
Evaluate Context Command TRB, 13
ResetEndpoint
Reset Endpoint Command TRB, 14
StopEndpoint
Stop Endpoint Command TRB, 15
SetTrDequeuePointer
Set TR Dequeue Pointer Command TRB, 16
ResetDevice
Reset Device Command TRB, 17
ForceEvent
Force Event Command TRB, 18
NegotiateBandwidth
Negotiate Bandwidth Command TRB, 19
SetLatencyToleranceValue
Set Latency Tolerance Value Command TRB, 20
GetPortBandwidth
Get Port Bandwidth Command TRB, 21
ForceHeader
Force Header Command TRB, 22
NoopCommand
No Op Command TRB, 23
GetExtendedProperty
Get Extended Property Command TRB, 24
SetExtendedProperty
Set Extended Property Command TRB, 25
TransferEvent
Transfer Event TRB, 32
CommandCompletion
Command Completion Event TRB, 33
PortStatusChange
Port Status Change Event TRB, 34
BandwidthRequest
Bandwidth Request Event TRB, 35
Doorbell
Doorbell Event TRB, 36
HostController
Host Controller Event TRB, 37
DeviceNotification
Device Notification Event TRB, 38
MfindexWrap
MFINDEX Wrap Event TRB, 39
Trait Implementations§
source§impl FromPrimitive for Type
impl FromPrimitive for Type
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl Ord for Type
impl Ord for Type
source§impl PartialEq<Type> for Type
impl PartialEq<Type> for Type
source§impl PartialOrd<Type> for Type
impl PartialOrd<Type> for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more