#[non_exhaustive]pub struct UsbEndpoint {
pub endpoint_number: u8,
pub direction: UsbDirection,
pub endpoint_type: UsbEndpointType,
pub packet_size: u32,
}Expand description
A USB endpoint provided by the USB device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint_number: u8The endpoint’s “endpoint number” which is a value from 1 to 15 extracted from the
bEndpointAddress field of the endpoint descriptor defining this endpoint.
This value is used to identify the endpoint when calling methods on OpenUsbDevice.
direction: UsbDirectionThe direction in which this endpoint transfers data.
endpoint_type: UsbEndpointTypeThe transfer type of the endpoint.
packet_size: u32The size of the packets that data sent through this endpoint will be divided into.
Trait Implementations§
Source§impl Clone for UsbEndpoint
impl Clone for UsbEndpoint
Source§fn clone(&self) -> UsbEndpoint
fn clone(&self) -> UsbEndpoint
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 UsbEndpoint
impl Debug for UsbEndpoint
Source§impl From<&UsbEndpoint> for UsbEndpoint
impl From<&UsbEndpoint> for UsbEndpoint
Source§fn from(ep: &UsbEndpoint) -> Self
fn from(ep: &UsbEndpoint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UsbEndpoint
impl RefUnwindSafe for UsbEndpoint
impl Send for UsbEndpoint
impl Sync for UsbEndpoint
impl Unpin for UsbEndpoint
impl UnwindSafe for UsbEndpoint
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