Struct embassy_usb_driver::EndpointInfo
source · pub struct EndpointInfo {
pub addr: EndpointAddress,
pub ep_type: EndpointType,
pub max_packet_size: u16,
pub interval_ms: u8,
}
Expand description
Information for an endpoint.
Fields§
§addr: EndpointAddress
Endpoint’s address.
ep_type: EndpointType
Endpoint’s type.
max_packet_size: u16
Max packet size, in bytes.
interval_ms: u8
Polling interval, in milliseconds.
Trait Implementations§
source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
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 EndpointInfo
impl Debug for EndpointInfo
source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
source§fn eq(&self, other: &EndpointInfo) -> bool
fn eq(&self, other: &EndpointInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EndpointInfo
impl Eq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnwindSafe for EndpointInfo
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