#[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 used for communication with a 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 number.
direction: UsbDirectionThe direction of transfer (e.g. “in” or “out”).
endpoint_type: UsbEndpointTypeThe transfer type (e.g. “bulk”, “interrupt”, or “isochronous”).
packet_size: u32The maximum packet size for this endpoint.
Trait Implementations§
Source§impl Clone for UsbEndpoint
impl Clone for UsbEndpoint
Source§fn clone(&self) -> UsbEndpoint
fn clone(&self) -> UsbEndpoint
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 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