#[repr(u8)]
pub enum EndpointType {
Control,
Isochronous,
Bulk,
Interrupt,
}
USB endpoint transfer type. The values of this enum can be directly cast into u8
to get the
transfer bmAttributes transfer type bits.
Control endpoint. Used for device management. Only the host can initiate requests. Usually
used only endpoint 0.
Isochronous endpoint. Used for time-critical unreliable data. Not implemented yet.
Bulk endpoint. Used for large amounts of best-effort reliable data.
Interrupt endpoint. Used for small amounts of time-critical reliable data.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
| 1.0.0 [src] |
This method tests for !=
.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static